diff --git a/src/main/java/com/microsoft/graph/generated/BaseGraphServiceClient.java b/src/main/java/com/microsoft/graph/generated/BaseGraphServiceClient.java index 043240f84f6..ae0c02c56a8 100644 --- a/src/main/java/com/microsoft/graph/generated/BaseGraphServiceClient.java +++ b/src/main/java/com/microsoft/graph/generated/BaseGraphServiceClient.java @@ -66,6 +66,7 @@ import com.microsoft.graph.shares.SharesRequestBuilder; import com.microsoft.graph.sites.SitesRequestBuilder; import com.microsoft.graph.solutions.SolutionsRequestBuilder; +import com.microsoft.graph.storage.StorageRequestBuilder; import com.microsoft.graph.subscribedskus.SubscribedSkusRequestBuilder; import com.microsoft.graph.subscriptions.SubscriptionsRequestBuilder; import com.microsoft.graph.teams.TeamsRequestBuilder; @@ -574,6 +575,14 @@ public SitesRequestBuilder sites() { public SolutionsRequestBuilder solutions() { return new SolutionsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the storage singleton. + * @return a {@link StorageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public StorageRequestBuilder storage() { + return new StorageRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the collection of subscribedSku entities. * @return a {@link SubscribedSkusRequestBuilder} 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 f820dc2e03e..940ae814bfa 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 channel or a chat. + * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. * @param body The request body * @return a {@link ChatMessage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see 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 or a chat. + * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. * @param body The request body * @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 or a chat. + * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} 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 0c6f3411076..737da07232b 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 91afd7f965e..34be4bbb1bd 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 managedAppProtection objects. + * List properties and relationships of the managedAppPolicy 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 managedAppProtection objects. + * List properties and relationships of the managedAppPolicy 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 managedAppProtection objects. + * List properties and relationships of the managedAppPolicy objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -117,7 +117,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the managedAppProtection objects. + * List properties and relationships of the managedAppPolicy 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 managedAppProtection objects. + * List properties and relationships of the managedAppPolicy 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/ManagedAppRegistrationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/ManagedAppRegistrationItemRequestBuilder.java index 29054f4a301..7bedaf1be58 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/ManagedAppRegistrationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedappregistrations/item/ManagedAppRegistrationItemRequestBuilder.java @@ -82,21 +82,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 androidManagedAppRegistration object. + * Read properties and relationships of the iosManagedAppRegistration object. * @return a {@link ManagedAppRegistration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppRegistration get() { return get(null); } /** - * Read properties and relationships of the androidManagedAppRegistration object. + * Read properties and relationships of the iosManagedAppRegistration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedAppRegistration} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedAppRegistration get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -151,7 +151,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the androidManagedAppRegistration object. + * Read properties and relationships of the iosManagedAppRegistration object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -159,7 +159,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the androidManagedAppRegistration object. + * Read properties and relationships of the iosManagedAppRegistration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -211,7 +211,7 @@ public ManagedAppRegistrationItemRequestBuilder withUrl(@jakarta.annotation.Nonn public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the androidManagedAppRegistration object. + * Read properties and relationships of the iosManagedAppRegistration 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/ManagedEBookItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/ManagedEBookItemRequestBuilder.java index 8f1d73a214c..99e8d46dffd 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/ManagedEBookItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/ManagedEBookItemRequestBuilder.java @@ -102,21 +102,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 managedEBook object. + * Read properties and relationships of the iosVppEBook object. * @return a {@link ManagedEBook} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBook get() { return get(null); } /** - * Read properties and relationships of the managedEBook object. + * Read properties and relationships of the iosVppEBook object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedEBook} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBook get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -173,7 +173,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the managedEBook object. + * Read properties and relationships of the iosVppEBook object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -181,7 +181,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the managedEBook object. + * Read properties and relationships of the iosVppEBook object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -233,7 +233,7 @@ public ManagedEBookItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the managedEBook object. + * Read properties and relationships of the iosVppEBook 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/AssignmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/AssignmentsRequestBuilder.java index 574df0454f5..4dca98ed3dc 100644 --- a/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/AssignmentsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/deviceappmanagement/managedebooks/item/assignments/AssignmentsRequestBuilder.java @@ -60,21 +60,21 @@ public AssignmentsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl super(requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List properties and relationships of the iosVppEBookAssignment objects. + * List properties and relationships of the managedEBookAssignment objects. * @return a {@link ManagedEBookAssignmentCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBookAssignmentCollectionResponse get() { return get(null); } /** - * List properties and relationships of the iosVppEBookAssignment objects. + * List properties and relationships of the managedEBookAssignment objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ManagedEBookAssignmentCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ManagedEBookAssignmentCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -84,23 +84,23 @@ public ManagedEBookAssignmentCollectionResponse get(@jakarta.annotation.Nullable return this.requestAdapter.send(requestInfo, errorMapping, ManagedEBookAssignmentCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param body The request body * @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 post(@jakarta.annotation.Nonnull final ManagedEBookAssignment body) { return post(body, null); } /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param body The request body * @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 post(@jakarta.annotation.Nonnull final ManagedEBookAssignment body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -111,7 +111,7 @@ public ManagedEBookAssignment post(@jakarta.annotation.Nonnull final ManagedEBoo return this.requestAdapter.send(requestInfo, errorMapping, ManagedEBookAssignment::createFromDiscriminatorValue); } /** - * List properties and relationships of the iosVppEBookAssignment objects. + * List properties and relationships of the managedEBookAssignment objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the iosVppEBookAssignment objects. + * List properties and relationships of the managedEBookAssignment 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 managedEBookAssignment object. + * Create a new iosVppEBookAssignment 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 managedEBookAssignment object. + * Create a new iosVppEBookAssignment 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 AssignmentsRequestBuilder withUrl(@jakarta.annotation.Nonnull final Strin return new AssignmentsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the iosVppEBookAssignment objects. + * List properties and relationships of the managedEBookAssignment objects. */ @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 0a8c0917b43..d4668c691ae 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 iosVppEBookAssignment. + * Deletes a managedEBookAssignment. * @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 iosVppEBookAssignment. + * Deletes a managedEBookAssignment. * @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 iosVppEBookAssignment. + * Deletes a managedEBookAssignment. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -116,7 +116,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a iosVppEBookAssignment. + * Deletes a managedEBookAssignment. * @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 f6ed71ee550..b50c98da514 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 managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration 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 managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration 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 managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration 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 managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration 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 219b7a1a920..f6b7893b37e 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 windowsMobileMSI objects. + * List properties and relationships of the macOSLobApp 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 windowsMobileMSI objects. + * List properties and relationships of the macOSLobApp 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 macOSOfficeSuiteApp object. + * Create a new iosLobApp 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 macOSOfficeSuiteApp object. + * Create a new iosLobApp 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 windowsMobileMSI objects. + * List properties and relationships of the macOSLobApp objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -263,7 +263,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the windowsMobileMSI objects. + * List properties and relationships of the macOSLobApp 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 macOSOfficeSuiteApp object. + * Create a new iosLobApp 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 macOSOfficeSuiteApp object. + * Create a new iosLobApp 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 windowsMobileMSI objects. + * List properties and relationships of the macOSLobApp 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 2e99ffdf497..161141a6015 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 @@ -208,18 +208,18 @@ public MobileAppItemRequestBuilder(@jakarta.annotation.Nonnull final String rawU super(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}{?%24expand,%24select}", rawUrl); } /** - * Deletes a windowsMicrosoftEdgeApp. + * Deletes a iosLobApp. * @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 windowsMicrosoftEdgeApp. + * Deletes a iosLobApp. * @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); @@ -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 macOSOfficeSuiteApp object. + * Read properties and relationships of the windowsUniversalAppX 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 macOSOfficeSuiteApp object. + * Read properties and relationships of the windowsUniversalAppX 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 windowsMicrosoftEdgeApp 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 windowsMicrosoftEdgeApp 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) { @@ -279,7 +279,7 @@ public MobileApp patch(@jakarta.annotation.Nonnull final MobileApp body, @jakart return this.requestAdapter.send(requestInfo, errorMapping, MobileApp::createFromDiscriminatorValue); } /** - * Deletes a windowsMicrosoftEdgeApp. + * Deletes a iosLobApp. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -287,7 +287,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a windowsMicrosoftEdgeApp. + * Deletes a iosLobApp. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -299,7 +299,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the macOSOfficeSuiteApp object. + * Read properties and relationships of the windowsUniversalAppX object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -307,7 +307,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the macOSOfficeSuiteApp object. + * Read properties and relationships of the windowsUniversalAppX 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 windowsMicrosoftEdgeApp 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 windowsMicrosoftEdgeApp 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 macOSOfficeSuiteApp object. + * Read properties and relationships of the windowsUniversalAppX 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 73f214a3ee1..f905d3a01ad 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 b6bdec42879..313c991abd9 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 macOSCompliancePolicy objects. + * List properties and relationships of the windows81CompliancePolicy 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 macOSCompliancePolicy objects. + * List properties and relationships of the windows81CompliancePolicy 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 windows81CompliancePolicy 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 windows81CompliancePolicy 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 macOSCompliancePolicy objects. + * List properties and relationships of the windows81CompliancePolicy objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the macOSCompliancePolicy objects. + * List properties and relationships of the windows81CompliancePolicy 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 windows81CompliancePolicy 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 windows81CompliancePolicy 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 macOSCompliancePolicy objects. + * List properties and relationships of the windows81CompliancePolicy 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 2a76171cf4e..2e0a20f1ed9 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 windows10MobileCompliancePolicy. * @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 windows10MobileCompliancePolicy. * @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 androidWorkProfileCompliancePolicy 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 androidWorkProfileCompliancePolicy 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 androidWorkProfileCompliancePolicy object. + * Update the properties of a windows10MobileCompliancePolicy 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 androidWorkProfileCompliancePolicy object. + * Update the properties of a windows10MobileCompliancePolicy 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 windows10MobileCompliancePolicy. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -197,7 +197,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a iosCompliancePolicy. + * Deletes a windows10MobileCompliancePolicy. * @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 androidWorkProfileCompliancePolicy 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 androidWorkProfileCompliancePolicy 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 androidWorkProfileCompliancePolicy object. + * Update the properties of a windows10MobileCompliancePolicy 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 androidWorkProfileCompliancePolicy object. + * Update the properties of a windows10MobileCompliancePolicy 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 androidWorkProfileCompliancePolicy 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 9f90125890a..86305da7fde 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 macOSGeneralDeviceConfiguration objects. + * List properties and relationships of the macOSDeviceFeaturesConfiguration 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 macOSGeneralDeviceConfiguration objects. + * List properties and relationships of the macOSDeviceFeaturesConfiguration 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 windows10CustomConfiguration object. + * Create a new windowsPhone81GeneralConfiguration 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 windows10CustomConfiguration object. + * Create a new windowsPhone81GeneralConfiguration 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 macOSGeneralDeviceConfiguration objects. + * List properties and relationships of the macOSDeviceFeaturesConfiguration objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the macOSGeneralDeviceConfiguration objects. + * List properties and relationships of the macOSDeviceFeaturesConfiguration 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 windows10CustomConfiguration object. + * Create a new windowsPhone81GeneralConfiguration 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 windows10CustomConfiguration object. + * Create a new windowsPhone81GeneralConfiguration 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 macOSGeneralDeviceConfiguration objects. + * List properties and relationships of the macOSDeviceFeaturesConfiguration 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 403a048ea30..0de692deaa6 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 iosDeviceFeaturesConfiguration. + * 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 iosDeviceFeaturesConfiguration. + * 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 androidCustomConfiguration object. + * Read properties and relationships of the windows10GeneralConfiguration 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 androidCustomConfiguration object. + * Read properties and relationships of the windows10GeneralConfiguration 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 androidWorkProfileCustomConfiguration object. + * Update the properties of a windowsDefenderAdvancedThreatProtectionConfiguration 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 androidWorkProfileCustomConfiguration object. + * Update the properties of a windowsDefenderAdvancedThreatProtectionConfiguration 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 iosDeviceFeaturesConfiguration. + * Deletes a iosCustomConfiguration. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -190,7 +190,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a iosDeviceFeaturesConfiguration. + * 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 androidCustomConfiguration object. + * Read properties and relationships of the windows10GeneralConfiguration object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -210,7 +210,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the androidCustomConfiguration object. + * Read properties and relationships of the windows10GeneralConfiguration 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 androidWorkProfileCustomConfiguration object. + * Update the properties of a windowsDefenderAdvancedThreatProtectionConfiguration 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 androidWorkProfileCustomConfiguration object. + * Update the properties of a windowsDefenderAdvancedThreatProtectionConfiguration 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 androidCustomConfiguration object. + * Read properties and relationships of the windows10GeneralConfiguration 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 aa9eb83a6d0..db59a22b86f 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 deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentLimitConfiguration 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 deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentLimitConfiguration 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 deviceEnrollmentLimitConfiguration object. + * Create a new 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 post(@jakarta.annotation.Nonnull final DeviceEnrollmentConfiguration body) { return post(body, null); } /** - * Create a new deviceEnrollmentLimitConfiguration object. + * Create a new 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 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 deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentLimitConfiguration objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentLimitConfiguration 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 deviceEnrollmentLimitConfiguration object. + * Create a new deviceEnrollmentPlatformRestrictionsConfiguration 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 deviceEnrollmentLimitConfiguration object. + * Create a new 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} @@ -165,7 +165,7 @@ public DeviceEnrollmentConfigurationsRequestBuilder withUrl(@jakarta.annotation. return new DeviceEnrollmentConfigurationsRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + * List properties and relationships of the deviceEnrollmentLimitConfiguration 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 8488c9ea061..a93d041c327 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 deviceEnrollmentPlatformRestrictionsConfiguration. * @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 deviceEnrollmentPlatformRestrictionsConfiguration. * @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); @@ -84,21 +84,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 deviceEnrollmentWindowsHelloForBusinessConfiguration object. + * Read properties and relationships of the deviceEnrollmentLimitConfiguration object. * @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 get() { return get(null); } /** - * Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. + * Read properties and relationships of the deviceEnrollmentLimitConfiguration object. * @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 get(@jakarta.annotation.Nullable final java.util.function.Consumer 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 deviceEnrollmentPlatformRestrictionsConfiguration. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -143,7 +143,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + * Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -155,7 +155,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. + * Read properties and relationships of the deviceEnrollmentLimitConfiguration object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -163,7 +163,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. + * Read properties and relationships of the deviceEnrollmentLimitConfiguration object. * @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} @@ -215,7 +215,7 @@ public DeviceEnrollmentConfigurationItemRequestBuilder withUrl(@jakarta.annotati public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. + * Read properties and relationships of the deviceEnrollmentLimitConfiguration object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { 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 d95718a0b0e..79c71a4aff3 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..4945fe89109 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 @@ -66,21 +66,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 deviceAndAppManagementRoleDefinition object. + * Read properties and relationships of the roleDefinition object. * @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 get() { return get(null); } /** - * Read properties and relationships of the deviceAndAppManagementRoleDefinition object. + * Read properties and relationships of the roleDefinition object. * @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 get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -137,7 +137,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read properties and relationships of the deviceAndAppManagementRoleDefinition object. + * Read properties and relationships of the roleDefinition object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -145,7 +145,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the deviceAndAppManagementRoleDefinition object. + * Read properties and relationships of the roleDefinition object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -197,7 +197,7 @@ public RoleDefinitionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fina public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read properties and relationships of the deviceAndAppManagementRoleDefinition object. + * Read properties and relationships of the roleDefinition object. */ @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/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/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/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/education/classes/item/assignments/AssignmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/education/classes/item/assignments/AssignmentsRequestBuilder.java index c5dcca7d43c..5c795b77275 100644 --- a/src/main/java/com/microsoft/graph/generated/education/classes/item/assignments/AssignmentsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/education/classes/item/assignments/AssignmentsRequestBuilder.java @@ -93,7 +93,7 @@ public EducationAssignmentCollectionResponse get(@jakarta.annotation.Nullable fi return this.requestAdapter.send(requestInfo, errorMapping, EducationAssignmentCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. + * Create a new assignment. Only teachers in a class can create an assignment. Assignments start in draft status, which means that students can't see the assignment until it's published. * @param body The request body * @return a {@link EducationAssignment} * @throws ODataError When receiving a 4XX or 5XX status code @@ -104,7 +104,7 @@ public EducationAssignment post(@jakarta.annotation.Nonnull final EducationAssig return post(body, null); } /** - * Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. + * Create a new assignment. Only teachers in a class can create an assignment. Assignments start in draft status, which means that students can't see the assignment until it's published. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link EducationAssignment} @@ -140,7 +140,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. + * Create a new assignment. Only teachers in a class can create an assignment. Assignments start in draft status, which means that students can't see the assignment until it's published. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new assignment. Only teachers in a class can create an assignment. Assignments start in the Draft state, which means that students will not see the assignment until publication. + * Create a new assignment. Only teachers in a class can create an assignment. Assignments start in draft status, which means that students can't see the assignment until it's published. * @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/education/classes/item/assignments/item/publish/PublishRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/education/classes/item/assignments/item/publish/PublishRequestBuilder.java index 038eb3ad1e3..8bd1ad7da0d 100644 --- a/src/main/java/com/microsoft/graph/generated/education/classes/item/assignments/item/publish/PublishRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/education/classes/item/assignments/item/publish/PublishRequestBuilder.java @@ -36,7 +36,7 @@ public PublishRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/publish", rawUrl); } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. * @return a {@link EducationAssignment} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -46,7 +46,7 @@ public EducationAssignment post() { return post(null); } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link EducationAssignment} * @throws ODataError When receiving a 4XX or 5XX status code @@ -60,7 +60,7 @@ public EducationAssignment post(@jakarta.annotation.Nullable final java.util.fun return this.requestAdapter.send(requestInfo, errorMapping, EducationAssignment::createFromDiscriminatorValue); } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -68,7 +68,7 @@ public RequestInformation toPostRequestInformation() { return toPostRequestInformation(null); } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. * @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/education/me/assignments/item/publish/PublishRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/education/me/assignments/item/publish/PublishRequestBuilder.java index f49b9a225c6..c112fb02d4c 100644 --- a/src/main/java/com/microsoft/graph/generated/education/me/assignments/item/publish/PublishRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/education/me/assignments/item/publish/PublishRequestBuilder.java @@ -36,7 +36,7 @@ public PublishRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/publish", rawUrl); } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. * @return a {@link EducationAssignment} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -46,7 +46,7 @@ public EducationAssignment post() { return post(null); } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link EducationAssignment} * @throws ODataError When receiving a 4XX or 5XX status code @@ -60,7 +60,7 @@ public EducationAssignment post(@jakarta.annotation.Nullable final java.util.fun return this.requestAdapter.send(requestInfo, errorMapping, EducationAssignment::createFromDiscriminatorValue); } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -68,7 +68,7 @@ public RequestInformation toPostRequestInformation() { return toPostRequestInformation(null); } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. * @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/education/users/item/assignments/item/publish/PublishRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/education/users/item/assignments/item/publish/PublishRequestBuilder.java index c625202213c..b66a95761d1 100644 --- a/src/main/java/com/microsoft/graph/generated/education/users/item/assignments/item/publish/PublishRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/education/users/item/assignments/item/publish/PublishRequestBuilder.java @@ -36,7 +36,7 @@ public PublishRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/publish", rawUrl); } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. * @return a {@link EducationAssignment} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -46,7 +46,7 @@ public EducationAssignment post() { return post(null); } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link EducationAssignment} * @throws ODataError When receiving a 4XX or 5XX status code @@ -60,7 +60,7 @@ public EducationAssignment post(@jakarta.annotation.Nullable final java.util.fun return this.requestAdapter.send(requestInfo, errorMapping, EducationAssignment::createFromDiscriminatorValue); } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -68,7 +68,7 @@ public RequestInformation toPostRequestInformation() { return toPostRequestInformation(null); } /** - * Publish an education assignment. Change the state of an educationAssignment from its original draft status to the published status. You can change the state from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The state of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. + * Publish an education assignment. Change the status of an educationAssignment from its original draft status to the published status. You can change the status from draft to scheduled if the assignment is scheduled for a future date. Only a teacher in the class can make this call. When an assignment is in draft status, students will not see the assignment, nor will there be any submission objects. Calling this API creates educationSubmission objects and displays the assignment in each student's list. The status of the assignment goes back to draft if there is any backend failure during publish process. To update the properties of a published assignment, see update an assignment. * @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 dd90069dd99..a78d61c8b4d 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/conversations/item/ConversationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/conversations/item/ConversationItemRequestBuilder.java index e35ea2ee6c3..97a4c049f1a 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/conversations/item/ConversationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/conversations/item/ConversationItemRequestBuilder.java @@ -48,7 +48,7 @@ public ConversationItemRequestBuilder(@jakarta.annotation.Nonnull final String r /** * Delete conversation. * @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); @@ -57,7 +57,7 @@ public void delete() { * Delete conversation. * @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); @@ -66,21 +66,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the properties and relationships of conversation object. + * The group's conversations. * @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 get() { return get(null); } /** - * Retrieve the properties and relationships of conversation object. + * The group's conversations. * @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 get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -110,7 +110,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the properties and relationships of conversation object. + * The group's conversations. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -118,7 +118,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties and relationships of conversation object. + * The group's conversations. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -146,7 +146,7 @@ public ConversationItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the properties and relationships of conversation object. + * The group's conversations. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/ConversationThreadItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/ConversationThreadItemRequestBuilder.java index 7aa6443c1aa..ac1e6587285 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/ConversationThreadItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/ConversationThreadItemRequestBuilder.java @@ -57,7 +57,7 @@ public ConversationThreadItemRequestBuilder(@jakarta.annotation.Nonnull final St /** * Delete conversationThread. * @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); @@ -66,7 +66,7 @@ public void delete() { * Delete conversationThread. * @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); @@ -75,21 +75,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get a thread object. + * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. * @return a {@link ConversationThread} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationThread get() { return get(null); } /** - * Get a thread object. + * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ConversationThread} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ConversationThread get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -146,7 +146,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get a thread object. + * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -154,7 +154,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get a thread object. + * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -206,7 +206,7 @@ public ConversationThreadItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get a thread object. + * Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/posts/PostsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/posts/PostsRequestBuilder.java index a8e2cfeae0a..3d3ea1dbfa4 100644 --- a/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/posts/PostsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/groups/item/threads/item/posts/PostsRequestBuilder.java @@ -59,21 +59,21 @@ public PostsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. * @return a {@link PostCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public PostCollectionResponse get() { return get(null); } /** - * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link PostCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public PostCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -83,7 +83,7 @@ public PostCollectionResponse get(@jakarta.annotation.Nullable final java.util.f return this.requestAdapter.send(requestInfo, errorMapping, PostCollectionResponse::createFromDiscriminatorValue); } /** - * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -91,7 +91,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -113,7 +113,7 @@ public PostsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU return new PostsRequestBuilder(rawUrl, requestAdapter); } /** - * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identity/IdentityRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/IdentityRequestBuilder.java index 9283a92cd9f..2d4f994d34b 100644 --- a/src/main/java/com/microsoft/graph/generated/identity/IdentityRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identity/IdentityRequestBuilder.java @@ -2,6 +2,7 @@ import com.microsoft.graph.identity.apiconnectors.ApiConnectorsRequestBuilder; import com.microsoft.graph.identity.authenticationeventlisteners.AuthenticationEventListenersRequestBuilder; +import com.microsoft.graph.identity.authenticationeventsflows.AuthenticationEventsFlowsRequestBuilder; import com.microsoft.graph.identity.b2xuserflows.B2xUserFlowsRequestBuilder; import com.microsoft.graph.identity.conditionalaccess.ConditionalAccessRequestBuilder; import com.microsoft.graph.identity.customauthenticationextensions.CustomAuthenticationExtensionsRequestBuilder; @@ -43,6 +44,14 @@ public ApiConnectorsRequestBuilder apiConnectors() { public AuthenticationEventListenersRequestBuilder authenticationEventListeners() { return new AuthenticationEventListenersRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the authenticationEventsFlows property of the microsoft.graph.identityContainer entity. + * @return a {@link AuthenticationEventsFlowsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AuthenticationEventsFlowsRequestBuilder authenticationEventsFlows() { + return new AuthenticationEventsFlowsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the b2xUserFlows property of the microsoft.graph.identityContainer entity. * @return a {@link B2xUserFlowsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/AuthenticationEventsFlowsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/AuthenticationEventsFlowsRequestBuilder.java new file mode 100644 index 00000000000..64781bc6b08 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/AuthenticationEventsFlowsRequestBuilder.java @@ -0,0 +1,256 @@ +package com.microsoft.graph.identity.authenticationeventsflows; + +import com.microsoft.graph.identity.authenticationeventsflows.count.CountRequestBuilder; +import com.microsoft.graph.identity.authenticationeventsflows.graphexternalusersselfservicesignupeventsflow.GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder; +import com.microsoft.graph.identity.authenticationeventsflows.item.AuthenticationEventsFlowItemRequestBuilder; +import com.microsoft.graph.models.AuthenticationEventsFlow; +import com.microsoft.graph.models.AuthenticationEventsFlowCollectionResponse; +import com.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 authenticationEventsFlows property of the microsoft.graph.identityContainer entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AuthenticationEventsFlowsRequestBuilder 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); + } + /** + * Casts the previous resource to externalUsersSelfServiceSignUpEventsFlow. + * @return a {@link GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder graphExternalUsersSelfServiceSignUpEventsFlow() { + return new GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the authenticationEventsFlows property of the microsoft.graph.identityContainer entity. + * @param authenticationEventsFlowId The unique identifier of authenticationEventsFlow + * @return a {@link AuthenticationEventsFlowItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AuthenticationEventsFlowItemRequestBuilder byAuthenticationEventsFlowId(@jakarta.annotation.Nonnull final String authenticationEventsFlowId) { + Objects.requireNonNull(authenticationEventsFlowId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("authenticationEventsFlow%2Did", authenticationEventsFlowId); + return new AuthenticationEventsFlowItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link AuthenticationEventsFlowsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AuthenticationEventsFlowsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link AuthenticationEventsFlowsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AuthenticationEventsFlowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get a collection of authentication events policies that are derived from authenticationEventsFlow. The following derived subtypes are supported: - externalUsersSelfServiceSignupEventsFlow + * @return a {@link AuthenticationEventsFlowCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public AuthenticationEventsFlowCollectionResponse get() { + return get(null); + } + /** + * Get a collection of authentication events policies that are derived from authenticationEventsFlow. The following derived subtypes are supported: - externalUsersSelfServiceSignupEventsFlow + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationEventsFlowCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public AuthenticationEventsFlowCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationEventsFlowCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new authenticationEventsFlow object that is of the type specified in the request body. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow object type. + * @param body The request body + * @return a {@link AuthenticationEventsFlow} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public AuthenticationEventsFlow post(@jakarta.annotation.Nonnull final AuthenticationEventsFlow body) { + return post(body, null); + } + /** + * Create a new authenticationEventsFlow object that is of the type specified in the request body. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow object type. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationEventsFlow} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public AuthenticationEventsFlow post(@jakarta.annotation.Nonnull final AuthenticationEventsFlow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationEventsFlow::createFromDiscriminatorValue); + } + /** + * Get a collection of authentication events policies that are derived from authenticationEventsFlow. The following derived subtypes are supported: - externalUsersSelfServiceSignupEventsFlow + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get a collection of authentication events policies that are derived from authenticationEventsFlow. The following derived subtypes are supported: - externalUsersSelfServiceSignupEventsFlow + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 authenticationEventsFlow object that is of the type specified in the request body. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow object type. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AuthenticationEventsFlow body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new authenticationEventsFlow object that is of the type specified in the request body. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow object 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 AuthenticationEventsFlow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AuthenticationEventsFlowsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AuthenticationEventsFlowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AuthenticationEventsFlowsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get a collection of authentication events policies that are derived from authenticationEventsFlow. The following derived subtypes are supported: - externalUsersSelfServiceSignupEventsFlow + */ + @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/identity/authenticationeventsflows/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/count/CountRequestBuilder.java new file mode 100644 index 00000000000..b85b3340390 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.identity.authenticationeventsflows.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}/identity/authenticationEventsFlows/$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}/identity/authenticationEventsFlows/$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/identity/authenticationeventsflows/graphexternalusersselfservicesignupeventsflow/GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/graphexternalusersselfservicesignupeventsflow/GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder.java new file mode 100644 index 00000000000..a731cd2b1e3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/graphexternalusersselfservicesignupeventsflow/GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder.java @@ -0,0 +1,174 @@ +package com.microsoft.graph.identity.authenticationeventsflows.graphexternalusersselfservicesignupeventsflow; + +import com.microsoft.graph.identity.authenticationeventsflows.graphexternalusersselfservicesignupeventsflow.count.CountRequestBuilder; +import com.microsoft.graph.models.ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse; +import com.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; +/** + * Casts the previous resource to externalUsersSelfServiceSignUpEventsFlow. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder 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 GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/graph.externalUsersSelfServiceSignUpEventsFlow{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/graph.externalUsersSelfServiceSignUpEventsFlow{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get the items of type microsoft.graph.externalUsersSelfServiceSignUpEventsFlow in the microsoft.graph.authenticationEventsFlow collection + * @return a {@link ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse get() { + return get(null); + } + /** + * Get the items of type microsoft.graph.externalUsersSelfServiceSignUpEventsFlow in the microsoft.graph.authenticationEventsFlow collection + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse::createFromDiscriminatorValue); + } + /** + * Get the items of type microsoft.graph.externalUsersSelfServiceSignUpEventsFlow in the microsoft.graph.authenticationEventsFlow collection + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the items of type microsoft.graph.externalUsersSelfServiceSignUpEventsFlow in the microsoft.graph.authenticationEventsFlow 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, 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 GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the items of type microsoft.graph.externalUsersSelfServiceSignUpEventsFlow in the microsoft.graph.authenticationEventsFlow collection + */ + @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/identity/authenticationeventsflows/graphexternalusersselfservicesignupeventsflow/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/graphexternalusersselfservicesignupeventsflow/count/CountRequestBuilder.java new file mode 100644 index 00000000000..9986bd4f4c5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/graphexternalusersselfservicesignupeventsflow/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.identity.authenticationeventsflows.graphexternalusersselfservicesignupeventsflow.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}/identity/authenticationEventsFlows/graph.externalUsersSelfServiceSignUpEventsFlow/$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}/identity/authenticationEventsFlows/graph.externalUsersSelfServiceSignUpEventsFlow/$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/identity/authenticationeventsflows/item/AuthenticationEventsFlowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/AuthenticationEventsFlowItemRequestBuilder.java new file mode 100644 index 00000000000..f89bd8023e3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/AuthenticationEventsFlowItemRequestBuilder.java @@ -0,0 +1,252 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item; + +import com.microsoft.graph.identity.authenticationeventsflows.item.conditions.ConditionsRequestBuilder; +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder; +import com.microsoft.graph.models.AuthenticationEventsFlow; +import com.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 authenticationEventsFlows property of the microsoft.graph.identityContainer entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AuthenticationEventsFlowItemRequestBuilder extends BaseRequestBuilder { + /** + * The conditions property + * @return a {@link ConditionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ConditionsRequestBuilder conditions() { + return new ConditionsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Casts the previous resource to externalUsersSelfServiceSignUpEventsFlow. + * @return a {@link GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder graphExternalUsersSelfServiceSignUpEventsFlow() { + return new GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link AuthenticationEventsFlowItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AuthenticationEventsFlowItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link AuthenticationEventsFlowItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AuthenticationEventsFlowItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete a specific authenticationEventsFlow resource by ID. This operation also removes or unlinks all applications from the flow, which disables the customized authentication experience defined for the application. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete() { + delete(null); + } + /** + * Delete a specific authenticationEventsFlow resource by ID. This operation also removes or unlinks all applications from the flow, which disables the customized authentication experience defined for the application. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow + * @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); + } + /** + * Retrieve the properties and relationships of a specific authenticationEventsFlow object by ID. The @odata.type property in the response object indicates the type of the object, which can be one of the following derived subtypes:- externalUsersSelfServiceSignupEventsFlow + * @return a {@link AuthenticationEventsFlow} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public AuthenticationEventsFlow get() { + return get(null); + } + /** + * Retrieve the properties and relationships of a specific authenticationEventsFlow object by ID. The @odata.type property in the response object indicates the type of the object, which can be one of the following derived subtypes:- externalUsersSelfServiceSignupEventsFlow + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationEventsFlow} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public AuthenticationEventsFlow get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationEventsFlow::createFromDiscriminatorValue); + } + /** + * Update the properties of an authenticationEventsFlow object by ID. You must specify the @odata.type property and the value of the authenticationEventsFlow object type to update. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow + * @param body The request body + * @return a {@link AuthenticationEventsFlow} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public AuthenticationEventsFlow patch(@jakarta.annotation.Nonnull final AuthenticationEventsFlow body) { + return patch(body, null); + } + /** + * Update the properties of an authenticationEventsFlow object by ID. You must specify the @odata.type property and the value of the authenticationEventsFlow object type to update. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationEventsFlow} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public AuthenticationEventsFlow patch(@jakarta.annotation.Nonnull final AuthenticationEventsFlow 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, AuthenticationEventsFlow::createFromDiscriminatorValue); + } + /** + * Delete a specific authenticationEventsFlow resource by ID. This operation also removes or unlinks all applications from the flow, which disables the customized authentication experience defined for the application. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete a specific authenticationEventsFlow resource by ID. This operation also removes or unlinks all applications from the flow, which disables the customized authentication experience defined for the application. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow + * @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 properties and relationships of a specific authenticationEventsFlow object by ID. The @odata.type property in the response object indicates the type of the object, which can be one of the following derived subtypes:- externalUsersSelfServiceSignupEventsFlow + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Retrieve the properties and relationships of a specific authenticationEventsFlow object by ID. The @odata.type property in the response object indicates the type of the object, which can be one of the following derived subtypes:- externalUsersSelfServiceSignupEventsFlow + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 an authenticationEventsFlow object by ID. You must specify the @odata.type property and the value of the authenticationEventsFlow object type to update. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final AuthenticationEventsFlow body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the properties of an authenticationEventsFlow object by ID. You must specify the @odata.type property and the value of the authenticationEventsFlow object type to update. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow + * @param body The request 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 AuthenticationEventsFlow 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 AuthenticationEventsFlowItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AuthenticationEventsFlowItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AuthenticationEventsFlowItemRequestBuilder(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 properties and relationships of a specific authenticationEventsFlow object by ID. The @odata.type property in the response object indicates the type of the object, which can be one of the following derived subtypes:- externalUsersSelfServiceSignupEventsFlow + */ + @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/identity/authenticationeventsflows/item/conditions/ConditionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/conditions/ConditionsRequestBuilder.java new file mode 100644 index 00000000000..e65964ebf19 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/conditions/ConditionsRequestBuilder.java @@ -0,0 +1,138 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.conditions; + +import com.microsoft.graph.identity.authenticationeventsflows.item.conditions.applications.ApplicationsRequestBuilder; +import com.microsoft.graph.models.AuthenticationConditions; +import com.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 /identity/authenticationEventsFlows/{authenticationEventsFlow-id}/conditions + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ConditionsRequestBuilder extends BaseRequestBuilder { + /** + * The applications property + * @return a {@link ApplicationsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ApplicationsRequestBuilder applications() { + return new ApplicationsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ConditionsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ConditionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link ConditionsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ConditionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions{?%24expand,%24select}", rawUrl); + } + /** + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. + * @return a {@link AuthenticationConditions} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditions get() { + return get(null); + } + /** + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationConditions} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditions get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationConditions::createFromDiscriminatorValue); + } + /** + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 ConditionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ConditionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ConditionsRequestBuilder(rawUrl, requestAdapter); + } + /** + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. + */ + @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/identity/authenticationeventsflows/item/conditions/applications/ApplicationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/conditions/applications/ApplicationsRequestBuilder.java new file mode 100644 index 00000000000..961f601b163 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/conditions/applications/ApplicationsRequestBuilder.java @@ -0,0 +1,37 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.conditions.applications; + +import com.microsoft.graph.identity.authenticationeventsflows.item.conditions.applications.includeapplications.IncludeApplicationsRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.RequestAdapter; +import java.util.HashMap; +import java.util.Objects; +/** + * Builds and executes requests for operations under /identity/authenticationEventsFlows/{authenticationEventsFlow-id}/conditions/applications + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ApplicationsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + * @return a {@link IncludeApplicationsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public IncludeApplicationsRequestBuilder includeApplications() { + return new IncludeApplicationsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ApplicationsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ApplicationsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications", pathParameters); + } + /** + * Instantiates a new {@link ApplicationsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ApplicationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications", rawUrl); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/conditions/applications/includeapplications/IncludeApplicationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/conditions/applications/includeapplications/IncludeApplicationsRequestBuilder.java new file mode 100644 index 00000000000..f73d8458051 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/conditions/applications/includeapplications/IncludeApplicationsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.conditions.applications.includeapplications; + +import com.microsoft.graph.identity.authenticationeventsflows.item.conditions.applications.includeapplications.count.CountRequestBuilder; +import com.microsoft.graph.identity.authenticationeventsflows.item.conditions.applications.includeapplications.item.AuthenticationConditionApplicationAppItemRequestBuilder; +import com.microsoft.graph.models.AuthenticationConditionApplication; +import com.microsoft.graph.models.AuthenticationConditionApplicationCollectionResponse; +import com.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 includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class IncludeApplicationsRequestBuilder 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 includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + * @param authenticationConditionApplicationAppId The unique identifier of authenticationConditionApplication + * @return a {@link AuthenticationConditionApplicationAppItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AuthenticationConditionApplicationAppItemRequestBuilder byAuthenticationConditionApplicationAppId(@jakarta.annotation.Nonnull final String authenticationConditionApplicationAppId) { + Objects.requireNonNull(authenticationConditionApplicationAppId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("authenticationConditionApplication%2DappId", authenticationConditionApplicationAppId); + return new AuthenticationConditionApplicationAppItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link IncludeApplicationsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public IncludeApplicationsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications/includeApplications{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link IncludeApplicationsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public IncludeApplicationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications/includeApplications{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get includeApplications from identity + * @return a {@link AuthenticationConditionApplicationCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplicationCollectionResponse get() { + return get(null); + } + /** + * Get includeApplications from identity + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationConditionApplicationCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplicationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationConditionApplicationCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to includeApplications for identity + * @param body The request body + * @return a {@link AuthenticationConditionApplication} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplication post(@jakarta.annotation.Nonnull final AuthenticationConditionApplication body) { + return post(body, null); + } + /** + * Create new navigation property to includeApplications for identity + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationConditionApplication} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplication post(@jakarta.annotation.Nonnull final AuthenticationConditionApplication body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationConditionApplication::createFromDiscriminatorValue); + } + /** + * Get includeApplications from identity + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get includeApplications from identity + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 includeApplications for identity + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AuthenticationConditionApplication body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to includeApplications for identity + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AuthenticationConditionApplication body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link IncludeApplicationsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public IncludeApplicationsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new IncludeApplicationsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get includeApplications from identity + */ + @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/identity/authenticationeventsflows/item/conditions/applications/includeapplications/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/conditions/applications/includeapplications/count/CountRequestBuilder.java new file mode 100644 index 00000000000..12b0f67cb9d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/conditions/applications/includeapplications/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.conditions.applications.includeapplications.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}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications/includeApplications/$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}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications/includeApplications/$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/identity/authenticationeventsflows/item/conditions/applications/includeapplications/item/AuthenticationConditionApplicationAppItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/conditions/applications/includeapplications/item/AuthenticationConditionApplicationAppItemRequestBuilder.java new file mode 100644 index 00000000000..7016090543b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/conditions/applications/includeapplications/item/AuthenticationConditionApplicationAppItemRequestBuilder.java @@ -0,0 +1,228 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.conditions.applications.includeapplications.item; + +import com.microsoft.graph.models.AuthenticationConditionApplication; +import com.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 includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AuthenticationConditionApplicationAppItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link AuthenticationConditionApplicationAppItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AuthenticationConditionApplicationAppItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications/includeApplications/{authenticationConditionApplication%2DappId}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link AuthenticationConditionApplicationAppItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AuthenticationConditionApplicationAppItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications/includeApplications/{authenticationConditionApplication%2DappId}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property includeApplications for identity + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property includeApplications for identity + * @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 includeApplications from identity + * @return a {@link AuthenticationConditionApplication} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplication get() { + return get(null); + } + /** + * Get includeApplications from identity + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationConditionApplication} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplication get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationConditionApplication::createFromDiscriminatorValue); + } + /** + * Update the navigation property includeApplications in identity + * @param body The request body + * @return a {@link AuthenticationConditionApplication} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplication patch(@jakarta.annotation.Nonnull final AuthenticationConditionApplication body) { + return patch(body, null); + } + /** + * Update the navigation property includeApplications in identity + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationConditionApplication} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplication patch(@jakarta.annotation.Nonnull final AuthenticationConditionApplication 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, AuthenticationConditionApplication::createFromDiscriminatorValue); + } + /** + * Delete navigation property includeApplications for identity + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property includeApplications for identity + * @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 includeApplications from identity + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get includeApplications from identity + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 includeApplications in identity + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final AuthenticationConditionApplication body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property includeApplications in identity + * @param body The request 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 AuthenticationConditionApplication 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 AuthenticationConditionApplicationAppItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AuthenticationConditionApplicationAppItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AuthenticationConditionApplicationAppItemRequestBuilder(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 includeApplications from identity + */ + @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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder.java new file mode 100644 index 00000000000..670ad98b79b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder.java @@ -0,0 +1,156 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow; + +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.conditions.ConditionsRequestBuilder; +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.OnAttributeCollectionRequestBuilder; +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.OnAuthenticationMethodLoadStartRequestBuilder; +import com.microsoft.graph.models.ExternalUsersSelfServiceSignUpEventsFlow; +import com.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; +/** + * Casts the previous resource to externalUsersSelfServiceSignUpEventsFlow. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder extends BaseRequestBuilder { + /** + * The conditions property + * @return a {@link ConditionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ConditionsRequestBuilder conditions() { + return new ConditionsRequestBuilder(pathParameters, requestAdapter); + } + /** + * The onAttributeCollection property + * @return a {@link OnAttributeCollectionRequestBuilder} + */ + @jakarta.annotation.Nonnull + public OnAttributeCollectionRequestBuilder onAttributeCollection() { + return new OnAttributeCollectionRequestBuilder(pathParameters, requestAdapter); + } + /** + * The onAuthenticationMethodLoadStart property + * @return a {@link OnAuthenticationMethodLoadStartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public OnAuthenticationMethodLoadStartRequestBuilder onAuthenticationMethodLoadStart() { + return new OnAuthenticationMethodLoadStartRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow{?%24expand,%24select}", rawUrl); + } + /** + * Get the item of type microsoft.graph.authenticationEventsFlow as microsoft.graph.externalUsersSelfServiceSignUpEventsFlow + * @return a {@link ExternalUsersSelfServiceSignUpEventsFlow} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ExternalUsersSelfServiceSignUpEventsFlow get() { + return get(null); + } + /** + * Get the item of type microsoft.graph.authenticationEventsFlow as microsoft.graph.externalUsersSelfServiceSignUpEventsFlow + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ExternalUsersSelfServiceSignUpEventsFlow} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ExternalUsersSelfServiceSignUpEventsFlow get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ExternalUsersSelfServiceSignUpEventsFlow::createFromDiscriminatorValue); + } + /** + * Get the item of type microsoft.graph.authenticationEventsFlow as microsoft.graph.externalUsersSelfServiceSignUpEventsFlow + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the item of type microsoft.graph.authenticationEventsFlow as microsoft.graph.externalUsersSelfServiceSignUpEventsFlow + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the item of type microsoft.graph.authenticationEventsFlow as microsoft.graph.externalUsersSelfServiceSignUpEventsFlow + */ + @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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/ConditionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/ConditionsRequestBuilder.java new file mode 100644 index 00000000000..785c14a31e8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/ConditionsRequestBuilder.java @@ -0,0 +1,138 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.conditions; + +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.conditions.applications.ApplicationsRequestBuilder; +import com.microsoft.graph.models.AuthenticationConditions; +import com.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 /identity/authenticationEventsFlows/{authenticationEventsFlow-id}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ConditionsRequestBuilder extends BaseRequestBuilder { + /** + * The applications property + * @return a {@link ApplicationsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ApplicationsRequestBuilder applications() { + return new ApplicationsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ConditionsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ConditionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link ConditionsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ConditionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions{?%24expand,%24select}", rawUrl); + } + /** + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. + * @return a {@link AuthenticationConditions} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditions get() { + return get(null); + } + /** + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationConditions} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditions get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationConditions::createFromDiscriminatorValue); + } + /** + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 ConditionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ConditionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ConditionsRequestBuilder(rawUrl, requestAdapter); + } + /** + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. + */ + @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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/applications/ApplicationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/applications/ApplicationsRequestBuilder.java new file mode 100644 index 00000000000..4ba46891d7c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/applications/ApplicationsRequestBuilder.java @@ -0,0 +1,37 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.conditions.applications; + +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.conditions.applications.includeapplications.IncludeApplicationsRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.RequestAdapter; +import java.util.HashMap; +import java.util.Objects; +/** + * Builds and executes requests for operations under /identity/authenticationEventsFlows/{authenticationEventsFlow-id}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ApplicationsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + * @return a {@link IncludeApplicationsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public IncludeApplicationsRequestBuilder includeApplications() { + return new IncludeApplicationsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ApplicationsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ApplicationsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications", pathParameters); + } + /** + * Instantiates a new {@link ApplicationsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ApplicationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications", rawUrl); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/applications/includeapplications/IncludeApplicationsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/applications/includeapplications/IncludeApplicationsRequestBuilder.java new file mode 100644 index 00000000000..f8220c03c00 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/applications/includeapplications/IncludeApplicationsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.conditions.applications.includeapplications; + +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.conditions.applications.includeapplications.count.CountRequestBuilder; +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.conditions.applications.includeapplications.item.AuthenticationConditionApplicationAppItemRequestBuilder; +import com.microsoft.graph.models.AuthenticationConditionApplication; +import com.microsoft.graph.models.AuthenticationConditionApplicationCollectionResponse; +import com.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 includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class IncludeApplicationsRequestBuilder 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 includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + * @param authenticationConditionApplicationAppId The unique identifier of authenticationConditionApplication + * @return a {@link AuthenticationConditionApplicationAppItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AuthenticationConditionApplicationAppItemRequestBuilder byAuthenticationConditionApplicationAppId(@jakarta.annotation.Nonnull final String authenticationConditionApplicationAppId) { + Objects.requireNonNull(authenticationConditionApplicationAppId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("authenticationConditionApplication%2DappId", authenticationConditionApplicationAppId); + return new AuthenticationConditionApplicationAppItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link IncludeApplicationsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public IncludeApplicationsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications/includeApplications{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link IncludeApplicationsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public IncludeApplicationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications/includeApplications{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get includeApplications from identity + * @return a {@link AuthenticationConditionApplicationCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplicationCollectionResponse get() { + return get(null); + } + /** + * Get includeApplications from identity + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationConditionApplicationCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplicationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationConditionApplicationCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to includeApplications for identity + * @param body The request body + * @return a {@link AuthenticationConditionApplication} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplication post(@jakarta.annotation.Nonnull final AuthenticationConditionApplication body) { + return post(body, null); + } + /** + * Create new navigation property to includeApplications for identity + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationConditionApplication} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplication post(@jakarta.annotation.Nonnull final AuthenticationConditionApplication body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationConditionApplication::createFromDiscriminatorValue); + } + /** + * Get includeApplications from identity + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get includeApplications from identity + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 includeApplications for identity + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AuthenticationConditionApplication body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to includeApplications for identity + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AuthenticationConditionApplication body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link IncludeApplicationsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public IncludeApplicationsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new IncludeApplicationsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get includeApplications from identity + */ + @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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/applications/includeapplications/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/applications/includeapplications/count/CountRequestBuilder.java new file mode 100644 index 00000000000..bc27c2adc7a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/applications/includeapplications/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.conditions.applications.includeapplications.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}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications/includeApplications/$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}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications/includeApplications/$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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/applications/includeapplications/item/AuthenticationConditionApplicationAppItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/applications/includeapplications/item/AuthenticationConditionApplicationAppItemRequestBuilder.java new file mode 100644 index 00000000000..5471db4aaea --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/applications/includeapplications/item/AuthenticationConditionApplicationAppItemRequestBuilder.java @@ -0,0 +1,228 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.conditions.applications.includeapplications.item; + +import com.microsoft.graph.models.AuthenticationConditionApplication; +import com.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 includeApplications property of the microsoft.graph.authenticationConditionsApplications entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AuthenticationConditionApplicationAppItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link AuthenticationConditionApplicationAppItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AuthenticationConditionApplicationAppItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications/includeApplications/{authenticationConditionApplication%2DappId}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link AuthenticationConditionApplicationAppItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AuthenticationConditionApplicationAppItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/conditions/applications/includeApplications/{authenticationConditionApplication%2DappId}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property includeApplications for identity + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property includeApplications for identity + * @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 includeApplications from identity + * @return a {@link AuthenticationConditionApplication} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplication get() { + return get(null); + } + /** + * Get includeApplications from identity + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationConditionApplication} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplication get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationConditionApplication::createFromDiscriminatorValue); + } + /** + * Update the navigation property includeApplications in identity + * @param body The request body + * @return a {@link AuthenticationConditionApplication} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplication patch(@jakarta.annotation.Nonnull final AuthenticationConditionApplication body) { + return patch(body, null); + } + /** + * Update the navigation property includeApplications in identity + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link AuthenticationConditionApplication} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public AuthenticationConditionApplication patch(@jakarta.annotation.Nonnull final AuthenticationConditionApplication 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, AuthenticationConditionApplication::createFromDiscriminatorValue); + } + /** + * Delete navigation property includeApplications for identity + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property includeApplications for identity + * @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 includeApplications from identity + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get includeApplications from identity + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 includeApplications in identity + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final AuthenticationConditionApplication body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property includeApplications in identity + * @param body The request 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 AuthenticationConditionApplication 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 AuthenticationConditionApplicationAppItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AuthenticationConditionApplicationAppItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AuthenticationConditionApplicationAppItemRequestBuilder(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 includeApplications from identity + */ + @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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/OnAttributeCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/OnAttributeCollectionRequestBuilder.java new file mode 100644 index 00000000000..ee9b3c21c7c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/OnAttributeCollectionRequestBuilder.java @@ -0,0 +1,138 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection; + +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup.GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.OnAttributeCollectionHandler; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.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 /identity/authenticationEventsFlows/{authenticationEventsFlow-id}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class OnAttributeCollectionRequestBuilder extends BaseRequestBuilder { + /** + * Casts the previous resource to onAttributeCollectionExternalUsersSelfServiceSignUp. + * @return a {@link GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder graphOnAttributeCollectionExternalUsersSelfServiceSignUp() { + return new GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link OnAttributeCollectionRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public OnAttributeCollectionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link OnAttributeCollectionRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public OnAttributeCollectionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection{?%24expand,%24select}", rawUrl); + } + /** + * The configuration for what to invoke when attributes are ready to be collected from the user. + * @return a {@link OnAttributeCollectionHandler} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public OnAttributeCollectionHandler get() { + return get(null); + } + /** + * The configuration for what to invoke when attributes are ready to be collected from the user. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link OnAttributeCollectionHandler} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public OnAttributeCollectionHandler get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, OnAttributeCollectionHandler::createFromDiscriminatorValue); + } + /** + * The configuration for what to invoke when attributes are ready to be collected from the user. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The configuration for what to invoke when attributes are ready to be collected from the 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 OnAttributeCollectionRequestBuilder} + */ + @jakarta.annotation.Nonnull + public OnAttributeCollectionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new OnAttributeCollectionRequestBuilder(rawUrl, requestAdapter); + } + /** + * The configuration for what to invoke when attributes are ready to be collected from the 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(); + } +} 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 new file mode 100644 index 00000000000..283ae03c85e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder.java @@ -0,0 +1,105 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup; + +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup.attributes.AttributesRequestBuilder; +import com.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; +/** + * Casts the previous resource to onAttributeCollectionExternalUsersSelfServiceSignUp. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the attributes property of the microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp entity. + * @return a {@link AttributesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AttributesRequestBuilder attributes() { + return new AttributesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp", pathParameters); + } + /** + * Instantiates a new {@link GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + 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} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public InputStream get() { + return get(null); + } + /** + * Get the items of type microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp in the microsoft.graph.onAttributeCollectionHandler collection + * @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); + } + /** + * Get the items of type microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp in the microsoft.graph.onAttributeCollectionHandler collection + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the items of type microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp in the microsoft.graph.onAttributeCollectionHandler 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 GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GraphOnAttributeCollectionExternalUsersSelfServiceSignUpRequestBuilder(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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/AttributesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/AttributesRequestBuilder.java new file mode 100644 index 00000000000..4e1095bc44e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/AttributesRequestBuilder.java @@ -0,0 +1,198 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup.attributes; + +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup.attributes.count.CountRequestBuilder; +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup.attributes.item.IdentityUserFlowAttributeItemRequestBuilder; +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup.attributes.ref.RefRequestBuilder; +import com.microsoft.graph.models.IdentityUserFlowAttributeCollectionResponse; +import com.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 attributes property of the microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AttributesRequestBuilder 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 collection of identityContainer entities. + * @return a {@link RefRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RefRequestBuilder ref() { + return new RefRequestBuilder(pathParameters, requestAdapter); + } + /** + * Gets an item from the com.Microsoft.Graph.identity.authenticationEventsFlows.item.graphExternalUsersSelfServiceSignUpEventsFlow.onAttributeCollection.graphOnAttributeCollectionExternalUsersSelfServiceSignUp.attributes.item collection + * @param identityUserFlowAttributeId The unique identifier of identityUserFlowAttribute + * @return a {@link IdentityUserFlowAttributeItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public IdentityUserFlowAttributeItemRequestBuilder byIdentityUserFlowAttributeId(@jakarta.annotation.Nonnull final String identityUserFlowAttributeId) { + Objects.requireNonNull(identityUserFlowAttributeId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("identityUserFlowAttribute%2Did", identityUserFlowAttributeId); + return new IdentityUserFlowAttributeItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link AttributesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AttributesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link AttributesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AttributesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + * @return a {@link IdentityUserFlowAttributeCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public IdentityUserFlowAttributeCollectionResponse get() { + return get(null); + } + /** + * Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link IdentityUserFlowAttributeCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public IdentityUserFlowAttributeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, IdentityUserFlowAttributeCollectionResponse::createFromDiscriminatorValue); + } + /** + * Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 AttributesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AttributesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AttributesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + */ + @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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/count/CountRequestBuilder.java new file mode 100644 index 00000000000..0cb1f76b8a8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup.attributes.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}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$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}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/item/IdentityUserFlowAttributeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/item/IdentityUserFlowAttributeItemRequestBuilder.java new file mode 100644 index 00000000000..dd7212be90a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/item/IdentityUserFlowAttributeItemRequestBuilder.java @@ -0,0 +1,37 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup.attributes.item; + +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup.attributes.item.ref.RefRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.RequestAdapter; +import java.util.HashMap; +import java.util.Objects; +/** + * Builds and executes requests for operations under /identity/authenticationEventsFlows/{authenticationEventsFlow-id}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/{identityUserFlowAttribute-id} + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class IdentityUserFlowAttributeItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the collection of identityContainer entities. + * @return a {@link RefRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RefRequestBuilder ref() { + return new RefRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link IdentityUserFlowAttributeItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public IdentityUserFlowAttributeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/{identityUserFlowAttribute%2Did}", pathParameters); + } + /** + * Instantiates a new {@link IdentityUserFlowAttributeItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public IdentityUserFlowAttributeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/{identityUserFlowAttribute%2Did}", rawUrl); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/item/ref/RefRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/item/ref/RefRequestBuilder.java new file mode 100644 index 00000000000..15701c74853 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/item/ref/RefRequestBuilder.java @@ -0,0 +1,91 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup.attributes.item.ref; + +import com.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 manage the collection of identityContainer entities. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RefRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RefRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RefRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/{identityUserFlowAttribute%2Did}/$ref", pathParameters); + } + /** + * Instantiates a new {@link RefRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RefRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/{identityUserFlowAttribute%2Did}/$ref", rawUrl); + } + /** + * Delete ref of navigation property attributes for identity + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete ref of navigation property attributes for identity + * @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); + } + /** + * Delete ref of navigation property attributes for identity + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete ref of navigation property attributes for identity + * @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 request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RefRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RefRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RefRequestBuilder(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 { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/ref/RefRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/ref/RefRequestBuilder.java new file mode 100644 index 00000000000..b4af09d99d8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/ref/RefRequestBuilder.java @@ -0,0 +1,279 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onattributecollection.graphonattributecollectionexternalusersselfservicesignup.attributes.ref; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ReferenceCreate; +import com.microsoft.graph.models.StringCollectionResponse; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.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 identityContainer entities. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RefRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RefRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RefRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link RefRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RefRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl); + } + /** + * Delete ref of navigation property attributes for identity + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete ref of navigation property attributes for identity + * @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 an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + * @return a {@link StringCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public StringCollectionResponse get() { + return get(null); + } + /** + * Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link StringCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public StringCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, StringCollectionResponse::createFromDiscriminatorValue); + } + /** + * Add an attribute to an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. Prerequisite: PATCH the user flow with the updated onAttributeCollection event that includes the new attribute. + * @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 ReferenceCreate body) { + post(body, null); + } + /** + * Add an attribute to an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. Prerequisite: PATCH the user flow with the updated onAttributeCollection event that includes the new attribute. + * @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 ReferenceCreate body, @jakarta.annotation.Nullable final 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); + } + /** + * Delete ref of navigation property attributes for identity + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete ref of navigation property attributes for identity + * @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, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref?@id={%40id}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Add an attribute to an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. Prerequisite: PATCH the user flow with the updated onAttributeCollection event that includes the new attribute. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ReferenceCreate body) { + return toPostRequestInformation(body, null); + } + /** + * Add an attribute to an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. Prerequisite: PATCH the user flow with the updated onAttributeCollection event that includes the new attribute. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ReferenceCreate body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RefRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RefRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RefRequestBuilder(rawUrl, requestAdapter); + } + /** + * Delete ref of navigation property attributes for identity + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteQueryParameters implements QueryParameters { + /** + * The delete Uri + */ + @jakarta.annotation.Nullable + public String id; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%40id", id); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public DeleteQueryParameters queryParameters = new DeleteQueryParameters(); + } + /** + * Get an identityUserFlowAttribute collection associated with an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object. These attributes are collected from the user during the authentication experience defined by the user flow. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * 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; + /** + * 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("%24orderby", orderby); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and 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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/OnAuthenticationMethodLoadStartRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/OnAuthenticationMethodLoadStartRequestBuilder.java new file mode 100644 index 00000000000..0e29e234e3c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/OnAuthenticationMethodLoadStartRequestBuilder.java @@ -0,0 +1,138 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart; + +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup.GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.OnAuthenticationMethodLoadStartHandler; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.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 /identity/authenticationEventsFlows/{authenticationEventsFlow-id}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class OnAuthenticationMethodLoadStartRequestBuilder extends BaseRequestBuilder { + /** + * Casts the previous resource to onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp. + * @return a {@link GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder graphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp() { + return new GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link OnAuthenticationMethodLoadStartRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public OnAuthenticationMethodLoadStartRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link OnAuthenticationMethodLoadStartRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public OnAuthenticationMethodLoadStartRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart{?%24expand,%24select}", rawUrl); + } + /** + * Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. + * @return a {@link OnAuthenticationMethodLoadStartHandler} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public OnAuthenticationMethodLoadStartHandler get() { + return get(null); + } + /** + * Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link OnAuthenticationMethodLoadStartHandler} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public OnAuthenticationMethodLoadStartHandler get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, OnAuthenticationMethodLoadStartHandler::createFromDiscriminatorValue); + } + /** + * Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 OnAuthenticationMethodLoadStartRequestBuilder} + */ + @jakarta.annotation.Nonnull + public OnAuthenticationMethodLoadStartRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new OnAuthenticationMethodLoadStartRequestBuilder(rawUrl, requestAdapter); + } + /** + * Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. + */ + @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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.java new file mode 100644 index 00000000000..048416114c9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder.java @@ -0,0 +1,105 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup; + +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup.identityproviders.IdentityProvidersRequestBuilder; +import com.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; +/** + * Casts the previous resource to onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the identityProviders property of the microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp entity. + * @return a {@link IdentityProvidersRequestBuilder} + */ + @jakarta.annotation.Nonnull + public IdentityProvidersRequestBuilder identityProviders() { + return new IdentityProvidersRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp", pathParameters); + } + /** + * Instantiates a new {@link GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + 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} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public InputStream get() { + return get(null); + } + /** + * Get the items of type microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp in the microsoft.graph.onAuthenticationMethodLoadStartHandler collection + * @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); + } + /** + * Get the items of type microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp in the microsoft.graph.onAuthenticationMethodLoadStartHandler collection + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the items of type microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp in the microsoft.graph.onAuthenticationMethodLoadStartHandler 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 GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder(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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/IdentityProvidersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/IdentityProvidersRequestBuilder.java new file mode 100644 index 00000000000..04911118c31 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/IdentityProvidersRequestBuilder.java @@ -0,0 +1,198 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup.identityproviders; + +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup.identityproviders.count.CountRequestBuilder; +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup.identityproviders.item.IdentityProviderBaseItemRequestBuilder; +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup.identityproviders.ref.RefRequestBuilder; +import com.microsoft.graph.models.IdentityProviderBaseCollectionResponse; +import com.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 identityProviders property of the microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class IdentityProvidersRequestBuilder 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 collection of identityContainer entities. + * @return a {@link RefRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RefRequestBuilder ref() { + return new RefRequestBuilder(pathParameters, requestAdapter); + } + /** + * Gets an item from the com.Microsoft.Graph.identity.authenticationEventsFlows.item.graphExternalUsersSelfServiceSignUpEventsFlow.onAuthenticationMethodLoadStart.graphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp.identityProviders.item collection + * @param identityProviderBaseId The unique identifier of identityProviderBase + * @return a {@link IdentityProviderBaseItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public IdentityProviderBaseItemRequestBuilder byIdentityProviderBaseId(@jakarta.annotation.Nonnull final String identityProviderBaseId) { + Objects.requireNonNull(identityProviderBaseId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("identityProviderBase%2Did", identityProviderBaseId); + return new IdentityProviderBaseItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link IdentityProvidersRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public IdentityProvidersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link IdentityProvidersRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public IdentityProvidersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + * @return a {@link IdentityProviderBaseCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public IdentityProviderBaseCollectionResponse get() { + return get(null); + } + /** + * Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link IdentityProviderBaseCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public IdentityProviderBaseCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, IdentityProviderBaseCollectionResponse::createFromDiscriminatorValue); + } + /** + * Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object 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 IdentityProvidersRequestBuilder} + */ + @jakarta.annotation.Nonnull + public IdentityProvidersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new IdentityProvidersRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object 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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/count/CountRequestBuilder.java new file mode 100644 index 00000000000..040b4a3449a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup.identityproviders.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}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$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}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$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/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/item/IdentityProviderBaseItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/item/IdentityProviderBaseItemRequestBuilder.java new file mode 100644 index 00000000000..e04f0f7c5e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/item/IdentityProviderBaseItemRequestBuilder.java @@ -0,0 +1,37 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup.identityproviders.item; + +import com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup.identityproviders.item.ref.RefRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.RequestAdapter; +import java.util.HashMap; +import java.util.Objects; +/** + * Builds and executes requests for operations under /identity/authenticationEventsFlows/{authenticationEventsFlow-id}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/{identityProviderBase-id} + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class IdentityProviderBaseItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the collection of identityContainer entities. + * @return a {@link RefRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RefRequestBuilder ref() { + return new RefRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link IdentityProviderBaseItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public IdentityProviderBaseItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/{identityProviderBase%2Did}", pathParameters); + } + /** + * Instantiates a new {@link IdentityProviderBaseItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public IdentityProviderBaseItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/{identityProviderBase%2Did}", rawUrl); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/item/ref/RefRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/item/ref/RefRequestBuilder.java new file mode 100644 index 00000000000..f5fb8c00080 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/item/ref/RefRequestBuilder.java @@ -0,0 +1,91 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup.identityproviders.item.ref; + +import com.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 manage the collection of identityContainer entities. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RefRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RefRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RefRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/{identityProviderBase%2Did}/$ref", pathParameters); + } + /** + * Instantiates a new {@link RefRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RefRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/{identityProviderBase%2Did}/$ref", rawUrl); + } + /** + * Delete ref of navigation property identityProviders for identity + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete ref of navigation property identityProviders for identity + * @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); + } + /** + * Delete ref of navigation property identityProviders for identity + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete ref of navigation property identityProviders for identity + * @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 request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RefRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RefRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RefRequestBuilder(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 { + } +} diff --git a/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/ref/RefRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/ref/RefRequestBuilder.java new file mode 100644 index 00000000000..ead99219bc2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/graphonauthenticationmethodloadstartexternalusersselfservicesignup/identityproviders/ref/RefRequestBuilder.java @@ -0,0 +1,279 @@ +package com.microsoft.graph.identity.authenticationeventsflows.item.graphexternalusersselfservicesignupeventsflow.onauthenticationmethodloadstart.graphonauthenticationmethodloadstartexternalusersselfservicesignup.identityproviders.ref; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.ReferenceCreate; +import com.microsoft.graph.models.StringCollectionResponse; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.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 identityContainer entities. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RefRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RefRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RefRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link RefRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RefRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl); + } + /** + * Delete ref of navigation property identityProviders for identity + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete ref of navigation property identityProviders for identity + * @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 identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + * @return a {@link StringCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public StringCollectionResponse get() { + return get(null); + } + /** + * Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link StringCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public StringCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, StringCollectionResponse::createFromDiscriminatorValue); + } + /** + * Add an identity provider to an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object type. The identity provider must first be configured in the tenant. + * @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 ReferenceCreate body) { + post(body, null); + } + /** + * Add an identity provider to an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object type. The identity provider must first be configured in the tenant. + * @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 ReferenceCreate body, @jakarta.annotation.Nullable final 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); + } + /** + * Delete ref of navigation property identityProviders for identity + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete ref of navigation property identityProviders for identity + * @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, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref?@id={%40id}", pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object 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, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Add an identity provider to an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object type. The identity provider must first be configured in the tenant. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ReferenceCreate body) { + return toPostRequestInformation(body, null); + } + /** + * Add an identity provider to an external identities self-service user flow represented by an externalUsersSelfServiceSignupEventsFlow object type. The identity provider must first be configured in the tenant. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ReferenceCreate body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref", pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RefRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RefRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RefRequestBuilder(rawUrl, requestAdapter); + } + /** + * Delete ref of navigation property identityProviders for identity + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteQueryParameters implements QueryParameters { + /** + * The delete Uri + */ + @jakarta.annotation.Nullable + public String id; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%40id", id); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public DeleteQueryParameters queryParameters = new DeleteQueryParameters(); + } + /** + * Get the identity providers that are defined for an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object type. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * 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; + /** + * 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("%24orderby", orderby); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and 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/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java index ae4a14f7286..44a6e4d4f99 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); @@ -57,21 +57,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the properties and relationships of a namedLocation object. + * Retrieve the properties and relationships of an ipNamedLocation object. * @return a {@link NamedLocation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public NamedLocation get() { return get(null); } /** - * Retrieve the properties and relationships of a namedLocation object. + * Retrieve the properties and relationships of an ipNamedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link NamedLocation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public NamedLocation get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -81,23 +81,23 @@ public NamedLocation get(@jakarta.annotation.Nullable final java.util.function.C return this.requestAdapter.send(requestInfo, errorMapping, NamedLocation::createFromDiscriminatorValue); } /** - * Update the properties of a countryNamedLocation object. + * Update the properties of an ipNamedLocation object. * @param body The request body * @return a {@link NamedLocation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public NamedLocation patch(@jakarta.annotation.Nonnull final NamedLocation body) { return patch(body, null); } /** - * Update the properties of a countryNamedLocation object. + * Update the properties of an ipNamedLocation object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link NamedLocation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public NamedLocation patch(@jakarta.annotation.Nonnull final NamedLocation body, @jakarta.annotation.Nullable final java.util.function.Consumer 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} */ @@ -128,7 +128,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the properties and relationships of a namedLocation object. + * Retrieve the properties and relationships of an ipNamedLocation object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -136,7 +136,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties and relationships of a namedLocation object. + * Retrieve the properties and relationships of an ipNamedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a countryNamedLocation object. + * Update the properties of an ipNamedLocation object. * @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 a countryNamedLocation object. + * Update the properties of an ipNamedLocation object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -188,7 +188,7 @@ public NamedLocationItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the properties and relationships of a namedLocation object. + * Retrieve the properties and relationships of an ipNamedLocation object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/accesspackages/item/AccessPackageItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/accesspackages/item/AccessPackageItemRequestBuilder.java index 354cb549225..b6e2b442d8a 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/accesspackages/item/AccessPackageItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/accesspackages/item/AccessPackageItemRequestBuilder.java @@ -120,21 +120,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + * Retrieve the properties and relationships of an accessPackage object. * @return a {@link AccessPackage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public AccessPackage get() { return get(null); } /** - * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + * Retrieve the properties and relationships of an accessPackage object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AccessPackage} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public AccessPackage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -191,7 +191,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + * Retrieve the properties and relationships of an accessPackage object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -199,7 +199,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + * Retrieve the properties and relationships of an accessPackage object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -251,7 +251,7 @@ public AccessPackageItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + * Retrieve the properties and relationships of an accessPackage object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/assignmentrequests/item/assignment/AssignmentRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/assignmentrequests/item/assignment/AssignmentRequestBuilder.java index 1ce5d66e04c..7627960dc45 100644 --- a/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/assignmentrequests/item/assignment/AssignmentRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/identitygovernance/entitlementmanagement/assignmentrequests/item/assignment/AssignmentRequestBuilder.java @@ -37,7 +37,7 @@ public AssignmentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/assignment{?%24expand,%24select}", rawUrl); } /** - * For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. + * For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. * @return a {@link AccessPackageAssignment} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public AccessPackageAssignment get() { return get(null); } /** - * For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. + * For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AccessPackageAssignment} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public AccessPackageAssignment get(@jakarta.annotation.Nullable final java.util. return this.requestAdapter.send(requestInfo, errorMapping, AccessPackageAssignment::createFromDiscriminatorValue); } /** - * For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. + * For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. + * For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. 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 AssignmentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new AssignmentRequestBuilder(rawUrl, requestAdapter); } /** - * For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. + * For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { 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 f80bad6757a..ff15de79921 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 accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension 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 accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension 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) { @@ -81,23 +81,23 @@ public CustomCalloutExtension get(@jakarta.annotation.Nullable final java.util.f return this.requestAdapter.send(requestInfo, errorMapping, CustomCalloutExtension::createFromDiscriminatorValue); } /** - * Update the properties of an accessPackageAssignmentWorkflowExtension object. + * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. * @param body The request body * @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 patch(@jakarta.annotation.Nonnull final CustomCalloutExtension body) { return patch(body, null); } /** - * Update the properties of an accessPackageAssignmentWorkflowExtension object. + * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. * @param body The request body * @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 patch(@jakarta.annotation.Nonnull final CustomCalloutExtension body, @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 accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension 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 accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of an accessPackageAssignmentWorkflowExtension object. + * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. * @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 accessPackageAssignmentWorkflowExtension object. + * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. * @param body The request body * @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 accessPackageAssignmentWorkflowExtension object. + * Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/models/AccessPackageAssignment.java b/src/main/java/com/microsoft/graph/generated/models/AccessPackageAssignment.java index 3be33ecfcc1..c8f5008a7e9 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AccessPackageAssignment.java +++ b/src/main/java/com/microsoft/graph/generated/models/AccessPackageAssignment.java @@ -91,7 +91,7 @@ public AccessPackageAssignmentState getState() { return this.backingStore.get("state"); } /** - * Gets the status property value. More information about the assignment lifecycle. Possible values include Delivering, Delivered, NearExpiry1DayNotificationTriggered, or ExpiredNotificationTriggered. Read-only. + * Gets the status property value. More information about the assignment lifecycle. Possible values include Delivering, Delivered, NearExpiry1DayNotificationTriggered, or ExpiredNotificationTriggered. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -165,7 +165,7 @@ public void setState(@jakarta.annotation.Nullable final AccessPackageAssignmentS this.backingStore.set("state", value); } /** - * Sets the status property value. More information about the assignment lifecycle. Possible values include Delivering, Delivered, NearExpiry1DayNotificationTriggered, or ExpiredNotificationTriggered. Read-only. + * Sets the status property value. More information about the assignment lifecycle. Possible values include Delivering, Delivered, NearExpiry1DayNotificationTriggered, or ExpiredNotificationTriggered. Read-only. * @param value Value to set for the status property. */ public void setStatus(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/AccessPackageAssignmentRequest.java b/src/main/java/com/microsoft/graph/generated/models/AccessPackageAssignmentRequest.java index 5162f5f78c2..fdae42e21a4 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AccessPackageAssignmentRequest.java +++ b/src/main/java/com/microsoft/graph/generated/models/AccessPackageAssignmentRequest.java @@ -42,7 +42,7 @@ public java.util.List getAnswers() { return this.backingStore.get("answers"); } /** - * Gets the assignment property value. For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. + * Gets the assignment property value. For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand. * @return a {@link AccessPackageAssignment} */ @jakarta.annotation.Nullable @@ -102,7 +102,7 @@ public AccessPackageSubject getRequestor() { return this.backingStore.get("requestor"); } /** - * Gets the requestType property value. The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property can't be changed once set. + * Gets the requestType property value. The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. Requests from the user have a requestType of userAdd, userUpdate, or userRemove. This property can't be changed once set. * @return a {@link AccessPackageRequestType} */ @jakarta.annotation.Nullable @@ -167,7 +167,7 @@ public void setAnswers(@jakarta.annotation.Nullable final java.util.List> getFieldDeserializers return deserializerMap; } /** - * Gets the originId property value. The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId will be the sequence number of the role in the site. + * Gets the originId property value. The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId is the sequence number of the role in the site. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -63,7 +63,7 @@ public String getOriginId() { return this.backingStore.get("originId"); } /** - * Gets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication or AadGroup. + * Gets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication, or AadGroup. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -106,14 +106,14 @@ public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } /** - * Sets the originId property value. The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId will be the sequence number of the role in the site. + * Sets the originId property value. The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId is the sequence number of the role in the site. * @param value Value to set for the originId property. */ public void setOriginId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("originId", value); } /** - * Sets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication or AadGroup. + * Sets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication, or AadGroup. * @param value Value to set for the originSystem property. */ public void setOriginSystem(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/AccessReviewInstanceDecisionItem.java b/src/main/java/com/microsoft/graph/generated/models/AccessReviewInstanceDecisionItem.java index 51e9b8e4787..be8b13e31b8 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AccessReviewInstanceDecisionItem.java +++ b/src/main/java/com/microsoft/graph/generated/models/AccessReviewInstanceDecisionItem.java @@ -121,7 +121,7 @@ public String getPrincipalLink() { return this.backingStore.get("principalLink"); } /** - * Gets the recommendation property value. A system-generated recommendation for the approval decision based off last interactive sign-in to tenant. Recommend approve if sign-in is within thirty days of start of review. Recommend deny if sign-in is greater than thirty days of start of review. Recommendation not available otherwise. Possible values: Approve, Deny, or NoInfoAvailable. Supports $select, $orderby, and $filter (eq only). Read-only. + * Gets the recommendation property value. A system-generated recommendation for the approval decision based off last interactive sign-in to tenant. The value is Approve if the sign-in is fewer than 30 days after the start of review, Deny if the sign-in is greater than 30 days after, or NoInfoAvailable. Possible values: Approve, Deny, or NoInfoAvailable. Supports $select, $orderby, and $filter (eq only). Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -246,7 +246,7 @@ public void setPrincipalLink(@jakarta.annotation.Nullable final String value) { this.backingStore.set("principalLink", value); } /** - * Sets the recommendation property value. A system-generated recommendation for the approval decision based off last interactive sign-in to tenant. Recommend approve if sign-in is within thirty days of start of review. Recommend deny if sign-in is greater than thirty days of start of review. Recommendation not available otherwise. Possible values: Approve, Deny, or NoInfoAvailable. Supports $select, $orderby, and $filter (eq only). Read-only. + * Sets the recommendation property value. A system-generated recommendation for the approval decision based off last interactive sign-in to tenant. The value is Approve if the sign-in is fewer than 30 days after the start of review, Deny if the sign-in is greater than 30 days after, or NoInfoAvailable. Possible values: Approve, Deny, or NoInfoAvailable. Supports $select, $orderby, and $filter (eq only). Read-only. * @param value Value to set for the recommendation property. */ public void setRecommendation(@jakarta.annotation.Nullable final String value) { 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 f8f5295a9de..6eed1fee87d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Authentication.java +++ b/src/main/java/com/microsoft/graph/generated/models/Authentication.java @@ -84,7 +84,7 @@ public java.util.List getOperations() { return this.backingStore.get("operations"); } /** - * Gets the passwordMethods property value. Represents the password that's registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password. + * Gets the passwordMethods property value. Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -100,7 +100,7 @@ public java.util.List getPhoneMethods() { return this.backingStore.get("phoneMethods"); } /** - * Gets the softwareOathMethods property value. The software OATH TOTP applications registered to a user for authentication. + * Gets the softwareOathMethods property value. The software OATH time-based one-time password (TOTP) applications registered to a user for authentication. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -177,7 +177,7 @@ public void setOperations(@jakarta.annotation.Nullable final java.util.List value) { @@ -191,7 +191,7 @@ public void setPhoneMethods(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionInputConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionInputConfiguration.java new file mode 100644 index 00000000000..b4212b06109 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionInputConfiguration.java @@ -0,0 +1,277 @@ +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 AuthenticationAttributeCollectionInputConfiguration implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AuthenticationAttributeCollectionInputConfiguration} and sets the default values. + */ + public AuthenticationAttributeCollectionInputConfiguration() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AuthenticationAttributeCollectionInputConfiguration} + */ + @jakarta.annotation.Nonnull + public static AuthenticationAttributeCollectionInputConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AuthenticationAttributeCollectionInputConfiguration(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the attribute property value. The built-in or custom attribute for which a value is being collected. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAttribute() { + return this.backingStore.get("attribute"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the defaultValue property value. The default value of the attribute displayed to the end user. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDefaultValue() { + return this.backingStore.get("defaultValue"); + } + /** + * Gets the editable property value. Whether the attribute is editable by the end user. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getEditable() { + return this.backingStore.get("editable"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(11); + deserializerMap.put("attribute", (n) -> { this.setAttribute(n.getStringValue()); }); + deserializerMap.put("defaultValue", (n) -> { this.setDefaultValue(n.getStringValue()); }); + deserializerMap.put("editable", (n) -> { this.setEditable(n.getBooleanValue()); }); + deserializerMap.put("hidden", (n) -> { this.setHidden(n.getBooleanValue()); }); + deserializerMap.put("inputType", (n) -> { this.setInputType(n.getEnumValue(AuthenticationAttributeCollectionInputType::forValue)); }); + deserializerMap.put("label", (n) -> { this.setLabel(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("options", (n) -> { this.setOptions(n.getCollectionOfObjectValues(AuthenticationAttributeCollectionOptionConfiguration::createFromDiscriminatorValue)); }); + deserializerMap.put("required", (n) -> { this.setRequired(n.getBooleanValue()); }); + deserializerMap.put("validationRegEx", (n) -> { this.setValidationRegEx(n.getStringValue()); }); + deserializerMap.put("writeToDirectory", (n) -> { this.setWriteToDirectory(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the hidden property value. Whether the attribute is displayed to the end user. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getHidden() { + return this.backingStore.get("hidden"); + } + /** + * Gets the inputType property value. The inputType property + * @return a {@link AuthenticationAttributeCollectionInputType} + */ + @jakarta.annotation.Nullable + public AuthenticationAttributeCollectionInputType getInputType() { + return this.backingStore.get("inputType"); + } + /** + * Gets the label property value. The label of the attribute field that is displayed to end user, unless overridden. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getLabel() { + return this.backingStore.get("label"); + } + /** + * 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 options property value. The option values for certain multiple-option input types. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getOptions() { + return this.backingStore.get("options"); + } + /** + * Gets the required property value. Whether the field is required. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getRequired() { + return this.backingStore.get("required"); + } + /** + * Gets the validationRegEx property value. The regex for the value of the field. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getValidationRegEx() { + return this.backingStore.get("validationRegEx"); + } + /** + * Gets the writeToDirectory property value. Whether the value collected is stored. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getWriteToDirectory() { + return this.backingStore.get("writeToDirectory"); + } + /** + * Serializes information the current 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("attribute", this.getAttribute()); + writer.writeStringValue("defaultValue", this.getDefaultValue()); + writer.writeBooleanValue("editable", this.getEditable()); + writer.writeBooleanValue("hidden", this.getHidden()); + writer.writeEnumValue("inputType", this.getInputType()); + writer.writeStringValue("label", this.getLabel()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeCollectionOfObjectValues("options", this.getOptions()); + writer.writeBooleanValue("required", this.getRequired()); + writer.writeStringValue("validationRegEx", this.getValidationRegEx()); + writer.writeBooleanValue("writeToDirectory", this.getWriteToDirectory()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the attribute property value. The built-in or custom attribute for which a value is being collected. + * @param value Value to set for the attribute property. + */ + public void setAttribute(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("attribute", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the defaultValue property value. The default value of the attribute displayed to the end user. + * @param value Value to set for the defaultValue property. + */ + public void setDefaultValue(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("defaultValue", value); + } + /** + * Sets the editable property value. Whether the attribute is editable by the end user. + * @param value Value to set for the editable property. + */ + public void setEditable(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("editable", value); + } + /** + * Sets the hidden property value. Whether the attribute is displayed to the end user. + * @param value Value to set for the hidden property. + */ + public void setHidden(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("hidden", value); + } + /** + * Sets the inputType property value. The inputType property + * @param value Value to set for the inputType property. + */ + public void setInputType(@jakarta.annotation.Nullable final AuthenticationAttributeCollectionInputType value) { + this.backingStore.set("inputType", value); + } + /** + * Sets the label property value. The label of the attribute field that is displayed to end user, unless overridden. + * @param value Value to set for the label property. + */ + public void setLabel(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("label", 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 options property value. The option values for certain multiple-option input types. + * @param value Value to set for the options property. + */ + public void setOptions(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("options", value); + } + /** + * Sets the required property value. Whether the field is required. + * @param value Value to set for the required property. + */ + public void setRequired(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("required", value); + } + /** + * Sets the validationRegEx property value. The regex for the value of the field. + * @param value Value to set for the validationRegEx property. + */ + public void setValidationRegEx(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("validationRegEx", value); + } + /** + * Sets the writeToDirectory property value. Whether the value collected is stored. + * @param value Value to set for the writeToDirectory property. + */ + public void setWriteToDirectory(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("writeToDirectory", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionInputType.java b/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionInputType.java new file mode 100644 index 00000000000..8adf851dbff --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionInputType.java @@ -0,0 +1,31 @@ +package com.microsoft.graph.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum AuthenticationAttributeCollectionInputType implements ValuedEnum { + Text("text"), + RadioSingleSelect("radioSingleSelect"), + CheckboxMultiSelect("checkboxMultiSelect"), + Boolean("boolean"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + AuthenticationAttributeCollectionInputType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static AuthenticationAttributeCollectionInputType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "text": return Text; + case "radioSingleSelect": return RadioSingleSelect; + case "checkboxMultiSelect": return CheckboxMultiSelect; + case "boolean": return Boolean; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionOptionConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionOptionConfiguration.java new file mode 100644 index 00000000000..79cd94518be --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionOptionConfiguration.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 AuthenticationAttributeCollectionOptionConfiguration implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AuthenticationAttributeCollectionOptionConfiguration} and sets the default values. + */ + public AuthenticationAttributeCollectionOptionConfiguration() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AuthenticationAttributeCollectionOptionConfiguration} + */ + @jakarta.annotation.Nonnull + public static AuthenticationAttributeCollectionOptionConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AuthenticationAttributeCollectionOptionConfiguration(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("label", (n) -> { this.setLabel(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the label property value. The label of the option that will be displayed to user, unless overridden. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getLabel() { + return this.backingStore.get("label"); + } + /** + * 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 value property value. The value of the option that will be stored. + * @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("label", this.getLabel()); + writer.writeStringValue("@odata.type", this.getOdataType()); + 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 label property value. The label of the option that will be displayed to user, unless overridden. + * @param value Value to set for the label property. + */ + public void setLabel(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("label", 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 value property value. The value of the option that will be stored. + * @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/models/AuthenticationAttributeCollectionPage.java b/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionPage.java new file mode 100644 index 00000000000..6affb2a75cb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionPage.java @@ -0,0 +1,124 @@ +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 AuthenticationAttributeCollectionPage implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AuthenticationAttributeCollectionPage} and sets the default values. + */ + public AuthenticationAttributeCollectionPage() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AuthenticationAttributeCollectionPage} + */ + @jakarta.annotation.Nonnull + public static AuthenticationAttributeCollectionPage createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AuthenticationAttributeCollectionPage(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("views", (n) -> { this.setViews(n.getCollectionOfObjectValues(AuthenticationAttributeCollectionPageViewConfiguration::createFromDiscriminatorValue)); }); + 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"); + } + /** + * Gets the views property value. A collection of displays of the attribute collection page. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getViews() { + return this.backingStore.get("views"); + } + /** + * Serializes information the current 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("@odata.type", this.getOdataType()); + writer.writeCollectionOfObjectValues("views", this.getViews()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = 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 views property value. A collection of displays of the attribute collection page. + * @param value Value to set for the views property. + */ + public void setViews(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("views", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionPageViewConfiguration.java b/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionPageViewConfiguration.java new file mode 100644 index 00000000000..9ac99225d65 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AuthenticationAttributeCollectionPageViewConfiguration.java @@ -0,0 +1,158 @@ +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 AuthenticationAttributeCollectionPageViewConfiguration implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AuthenticationAttributeCollectionPageViewConfiguration} and sets the default values. + */ + public AuthenticationAttributeCollectionPageViewConfiguration() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AuthenticationAttributeCollectionPageViewConfiguration} + */ + @jakarta.annotation.Nonnull + public static AuthenticationAttributeCollectionPageViewConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AuthenticationAttributeCollectionPageViewConfiguration(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(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 description property value. The description of the page. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDescription() { + return this.backingStore.get("description"); + } + /** + * 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("description", (n) -> { this.setDescription(n.getStringValue()); }); + deserializerMap.put("inputs", (n) -> { this.setInputs(n.getCollectionOfObjectValues(AuthenticationAttributeCollectionInputConfiguration::createFromDiscriminatorValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("title", (n) -> { this.setTitle(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the inputs property value. The display configuration of attributes being collected on the attribute collection page. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getInputs() { + return this.backingStore.get("inputs"); + } + /** + * 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 title property value. The title of the attribute collection page. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getTitle() { + return this.backingStore.get("title"); + } + /** + * Serializes information the current 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("description", this.getDescription()); + writer.writeCollectionOfObjectValues("inputs", this.getInputs()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeStringValue("title", this.getTitle()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the description property value. The description of the page. + * @param value Value to set for the description property. + */ + public void setDescription(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("description", value); + } + /** + * Sets the inputs property value. The display configuration of attributes being collected on the attribute collection page. + * @param value Value to set for the inputs property. + */ + public void setInputs(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("inputs", 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 title property value. The title of the attribute collection page. + * @param value Value to set for the title property. + */ + public void setTitle(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("title", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/AuthenticationConditionApplicationCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/AuthenticationConditionApplicationCollectionResponse.java new file mode 100644 index 00000000000..2f383e0de60 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AuthenticationConditionApplicationCollectionResponse.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 AuthenticationConditionApplicationCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link AuthenticationConditionApplicationCollectionResponse} and sets the default values. + */ + public AuthenticationConditionApplicationCollectionResponse() { + 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 AuthenticationConditionApplicationCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static AuthenticationConditionApplicationCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AuthenticationConditionApplicationCollectionResponse(); + } + /** + * 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(AuthenticationConditionApplication::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/AuthenticationEventListener.java b/src/main/java/com/microsoft/graph/generated/models/AuthenticationEventListener.java index 37b6b05ef48..28ee161fdd6 100644 --- a/src/main/java/com/microsoft/graph/generated/models/AuthenticationEventListener.java +++ b/src/main/java/com/microsoft/graph/generated/models/AuthenticationEventListener.java @@ -26,7 +26,11 @@ public static AuthenticationEventListener createFromDiscriminatorValue(@jakarta. if (mappingValueNode != null) { final String mappingValue = mappingValueNode.getStringValue(); switch (mappingValue) { + case "#microsoft.graph.onAttributeCollectionListener": return new OnAttributeCollectionListener(); + case "#microsoft.graph.onAuthenticationMethodLoadStartListener": return new OnAuthenticationMethodLoadStartListener(); + case "#microsoft.graph.onInteractiveAuthFlowStartListener": return new OnInteractiveAuthFlowStartListener(); case "#microsoft.graph.onTokenIssuanceStartListener": return new OnTokenIssuanceStartListener(); + case "#microsoft.graph.onUserCreateStartListener": return new OnUserCreateStartListener(); } } return new AuthenticationEventListener(); diff --git a/src/main/java/com/microsoft/graph/generated/models/AuthenticationEventsFlow.java b/src/main/java/com/microsoft/graph/generated/models/AuthenticationEventsFlow.java new file mode 100644 index 00000000000..dae864da118 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AuthenticationEventsFlow.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 AuthenticationEventsFlow extends Entity implements Parsable { + /** + * Instantiates a new {@link AuthenticationEventsFlow} and sets the default values. + */ + public AuthenticationEventsFlow() { + 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 AuthenticationEventsFlow} + */ + @jakarta.annotation.Nonnull + public static AuthenticationEventsFlow 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.externalUsersSelfServiceSignUpEventsFlow": return new ExternalUsersSelfServiceSignUpEventsFlow(); + } + } + return new AuthenticationEventsFlow(); + } + /** + * Gets the conditions property value. The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. + * @return a {@link AuthenticationConditions} + */ + @jakarta.annotation.Nullable + public AuthenticationConditions getConditions() { + return this.backingStore.get("conditions"); + } + /** + * Gets the description property value. The description of the events policy. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDescription() { + return this.backingStore.get("description"); + } + /** + * Gets the displayName property value. Required. The display name for the events policy. + * @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("conditions", (n) -> { this.setConditions(n.getObjectValue(AuthenticationConditions::createFromDiscriminatorValue)); }); + deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); }); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(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); + super.serialize(writer); + writer.writeObjectValue("conditions", this.getConditions()); + writer.writeStringValue("description", this.getDescription()); + writer.writeStringValue("displayName", this.getDisplayName()); + } + /** + * Sets the conditions property value. The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. + * @param value Value to set for the conditions property. + */ + public void setConditions(@jakarta.annotation.Nullable final AuthenticationConditions value) { + this.backingStore.set("conditions", value); + } + /** + * Sets the description property value. The description of the events policy. + * @param value Value to set for the description property. + */ + public void setDescription(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("description", value); + } + /** + * Sets the displayName property value. Required. The display name for the events policy. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/AuthenticationEventsFlowCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/AuthenticationEventsFlowCollectionResponse.java new file mode 100644 index 00000000000..0f096ea4854 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/AuthenticationEventsFlowCollectionResponse.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 AuthenticationEventsFlowCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link AuthenticationEventsFlowCollectionResponse} and sets the default values. + */ + public AuthenticationEventsFlowCollectionResponse() { + 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 AuthenticationEventsFlowCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static AuthenticationEventsFlowCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AuthenticationEventsFlowCollectionResponse(); + } + /** + * 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(AuthenticationEventsFlow::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/ContentCustomization.java b/src/main/java/com/microsoft/graph/generated/models/ContentCustomization.java index bc4db86a82c..05fde3f04af 100644 --- a/src/main/java/com/microsoft/graph/generated/models/ContentCustomization.java +++ b/src/main/java/com/microsoft/graph/generated/models/ContentCustomization.java @@ -94,7 +94,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the registrationCampaign property value. The registrationCampaign property + * Gets the registrationCampaign property value. Represents content options to customize during MFA proofup interruptions. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -102,7 +102,7 @@ public java.util.List getRegistrationCampaign() { return this.backingStore.get("registrationCampaign"); } /** - * Gets the registrationCampaignRelativeUrl property value. The registrationCampaignRelativeUrl property + * Gets the registrationCampaignRelativeUrl property value. The relative URL of the content options to customize during MFA proofup interruptions. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -159,14 +159,14 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the registrationCampaign property value. The registrationCampaign property + * Sets the registrationCampaign property value. Represents content options to customize during MFA proofup interruptions. * @param value Value to set for the registrationCampaign property. */ public void setRegistrationCampaign(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("registrationCampaign", value); } /** - * Sets the registrationCampaignRelativeUrl property value. The registrationCampaignRelativeUrl property + * Sets the registrationCampaignRelativeUrl property value. The relative URL of the content options to customize during MFA proofup interruptions. * @param value Value to set for the registrationCampaignRelativeUrl property. */ public void setRegistrationCampaignRelativeUrl(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/Dictionary.java b/src/main/java/com/microsoft/graph/generated/models/Dictionary.java index 5538e0f0019..83a4e871f18 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Dictionary.java +++ b/src/main/java/com/microsoft/graph/generated/models/Dictionary.java @@ -36,6 +36,7 @@ public static Dictionary createFromDiscriminatorValue(@jakarta.annotation.Nonnul if (mappingValueNode != null) { final String mappingValue = mappingValueNode.getStringValue(); switch (mappingValue) { + case "#microsoft.graph.fileStorageContainerCustomPropertyDictionary": return new FileStorageContainerCustomPropertyDictionary(); case "#microsoft.graph.resultTemplateDictionary": return new ResultTemplateDictionary(); } } 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 90af57b5d74..0f7cdac5f93 100644 --- a/src/main/java/com/microsoft/graph/generated/models/Entity.java +++ b/src/main/java/com/microsoft/graph/generated/models/Entity.java @@ -247,6 +247,7 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.authenticationCombinationConfiguration": return new AuthenticationCombinationConfiguration(); case "#microsoft.graph.authenticationContextClassReference": return new AuthenticationContextClassReference(); case "#microsoft.graph.authenticationEventListener": return new AuthenticationEventListener(); + case "#microsoft.graph.authenticationEventsFlow": return new AuthenticationEventsFlow(); case "#microsoft.graph.authenticationFlowsPolicy": return new AuthenticationFlowsPolicy(); case "#microsoft.graph.authenticationMethod": return new AuthenticationMethod(); case "#microsoft.graph.authenticationMethodConfiguration": return new AuthenticationMethodConfiguration(); @@ -457,6 +458,7 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.externalConnectors.identity": return new Identity(); case "#microsoft.graph.externalConnectors.schema": return new Schema(); case "#microsoft.graph.externalDomainName": return new ExternalDomainName(); + case "#microsoft.graph.externalUsersSelfServiceSignUpEventsFlow": return new ExternalUsersSelfServiceSignUpEventsFlow(); case "#microsoft.graph.featureRolloutPolicy": return new FeatureRolloutPolicy(); case "#microsoft.graph.federatedIdentityCredential": return new FederatedIdentityCredential(); case "#microsoft.graph.fido2AuthenticationMethod": return new Fido2AuthenticationMethod(); @@ -465,6 +467,8 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.fieldValueSet": return new FieldValueSet(); case "#microsoft.graph.fileAssessmentRequest": return new FileAssessmentRequest(); case "#microsoft.graph.fileAttachment": return new FileAttachment(); + case "#microsoft.graph.fileStorage": return new FileStorage(); + case "#microsoft.graph.fileStorageContainer": return new FileStorageContainer(); case "#microsoft.graph.filterOperatorSchema": return new FilterOperatorSchema(); case "#microsoft.graph.governanceInsight": return new GovernanceInsight(); case "#microsoft.graph.group": return new Group(); @@ -611,6 +615,8 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.oAuth2PermissionGrant": return new OAuth2PermissionGrant(); case "#microsoft.graph.offerShiftRequest": return new OfferShiftRequest(); case "#microsoft.graph.officeGraphInsights": return new OfficeGraphInsights(); + case "#microsoft.graph.onAttributeCollectionListener": return new OnAttributeCollectionListener(); + case "#microsoft.graph.onAuthenticationMethodLoadStartListener": return new OnAuthenticationMethodLoadStartListener(); case "#microsoft.graph.onenote": return new Onenote(); case "#microsoft.graph.onenoteEntityBaseModel": return new OnenoteEntityBaseModel(); case "#microsoft.graph.onenoteEntityHierarchyModel": return new OnenoteEntityHierarchyModel(); @@ -619,12 +625,14 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.onenotePage": return new OnenotePage(); case "#microsoft.graph.onenoteResource": return new OnenoteResource(); case "#microsoft.graph.onenoteSection": return new OnenoteSection(); + case "#microsoft.graph.onInteractiveAuthFlowStartListener": return new OnInteractiveAuthFlowStartListener(); case "#microsoft.graph.onlineMeeting": return new OnlineMeeting(); case "#microsoft.graph.onlineMeetingBase": return new OnlineMeetingBase(); case "#microsoft.graph.onPremisesConditionalAccessSettings": return new OnPremisesConditionalAccessSettings(); case "#microsoft.graph.onPremisesDirectorySynchronization": return new OnPremisesDirectorySynchronization(); case "#microsoft.graph.onTokenIssuanceStartCustomExtension": return new OnTokenIssuanceStartCustomExtension(); case "#microsoft.graph.onTokenIssuanceStartListener": return new OnTokenIssuanceStartListener(); + case "#microsoft.graph.onUserCreateStartListener": return new OnUserCreateStartListener(); case "#microsoft.graph.openShift": return new OpenShift(); case "#microsoft.graph.openShiftChangeRequest": return new OpenShiftChangeRequest(); case "#microsoft.graph.openTypeExtension": return new OpenTypeExtension(); @@ -658,14 +666,6 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.permission": return new Permission(); case "#microsoft.graph.permissionGrantConditionSet": return new PermissionGrantConditionSet(); case "#microsoft.graph.permissionGrantPolicy": return new PermissionGrantPolicy(); - case "#microsoft.graph.person": return new Person(); - case "#microsoft.graph.phoneAuthenticationMethod": return new PhoneAuthenticationMethod(); - case "#microsoft.graph.pinnedChatMessageInfo": return new PinnedChatMessageInfo(); - case "#microsoft.graph.place": return new Place(); - case "#microsoft.graph.planner": return new Planner(); - case "#microsoft.graph.plannerAssignedToTaskBoardTaskFormat": return new PlannerAssignedToTaskBoardTaskFormat(); - case "#microsoft.graph.plannerBucket": return new PlannerBucket(); - case "#microsoft.graph.plannerBucketTaskBoardTaskFormat": return new PlannerBucketTaskBoardTaskFormat(); } return null; } @@ -677,6 +677,14 @@ 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.person": return new Person(); + case "#microsoft.graph.phoneAuthenticationMethod": return new PhoneAuthenticationMethod(); + case "#microsoft.graph.pinnedChatMessageInfo": return new PinnedChatMessageInfo(); + case "#microsoft.graph.place": return new Place(); + case "#microsoft.graph.planner": return new Planner(); + case "#microsoft.graph.plannerAssignedToTaskBoardTaskFormat": return new PlannerAssignedToTaskBoardTaskFormat(); + case "#microsoft.graph.plannerBucket": return new PlannerBucket(); + case "#microsoft.graph.plannerBucketTaskBoardTaskFormat": return new PlannerBucketTaskBoardTaskFormat(); case "#microsoft.graph.plannerGroup": return new PlannerGroup(); case "#microsoft.graph.plannerPlan": return new PlannerPlan(); case "#microsoft.graph.plannerPlanDetails": return new PlannerPlanDetails(); diff --git a/src/main/java/com/microsoft/graph/generated/models/ExternalUsersSelfServiceSignUpEventsFlow.java b/src/main/java/com/microsoft/graph/generated/models/ExternalUsersSelfServiceSignUpEventsFlow.java new file mode 100644 index 00000000000..a0814ea1e5d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ExternalUsersSelfServiceSignUpEventsFlow.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 ExternalUsersSelfServiceSignUpEventsFlow extends AuthenticationEventsFlow implements Parsable { + /** + * Instantiates a new {@link ExternalUsersSelfServiceSignUpEventsFlow} and sets the default values. + */ + public ExternalUsersSelfServiceSignUpEventsFlow() { + super(); + this.setOdataType("#microsoft.graph.externalUsersSelfServiceSignUpEventsFlow"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link ExternalUsersSelfServiceSignUpEventsFlow} + */ + @jakarta.annotation.Nonnull + public static ExternalUsersSelfServiceSignUpEventsFlow createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ExternalUsersSelfServiceSignUpEventsFlow(); + } + /** + * 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("onAttributeCollection", (n) -> { this.setOnAttributeCollection(n.getObjectValue(OnAttributeCollectionHandler::createFromDiscriminatorValue)); }); + deserializerMap.put("onAuthenticationMethodLoadStart", (n) -> { this.setOnAuthenticationMethodLoadStart(n.getObjectValue(OnAuthenticationMethodLoadStartHandler::createFromDiscriminatorValue)); }); + deserializerMap.put("onInteractiveAuthFlowStart", (n) -> { this.setOnInteractiveAuthFlowStart(n.getObjectValue(OnInteractiveAuthFlowStartHandler::createFromDiscriminatorValue)); }); + deserializerMap.put("onUserCreateStart", (n) -> { this.setOnUserCreateStart(n.getObjectValue(OnUserCreateStartHandler::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the onAttributeCollection property value. The configuration for what to invoke when attributes are ready to be collected from the user. + * @return a {@link OnAttributeCollectionHandler} + */ + @jakarta.annotation.Nullable + public OnAttributeCollectionHandler getOnAttributeCollection() { + return this.backingStore.get("onAttributeCollection"); + } + /** + * Gets the onAuthenticationMethodLoadStart property value. Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. + * @return a {@link OnAuthenticationMethodLoadStartHandler} + */ + @jakarta.annotation.Nullable + public OnAuthenticationMethodLoadStartHandler getOnAuthenticationMethodLoadStart() { + return this.backingStore.get("onAuthenticationMethodLoadStart"); + } + /** + * Gets the onInteractiveAuthFlowStart property value. Required. The configuration for what to invoke when an authentication flow is ready to be initiated. + * @return a {@link OnInteractiveAuthFlowStartHandler} + */ + @jakarta.annotation.Nullable + public OnInteractiveAuthFlowStartHandler getOnInteractiveAuthFlowStart() { + return this.backingStore.get("onInteractiveAuthFlowStart"); + } + /** + * Gets the onUserCreateStart property value. The configuration for what to invoke during user creation. + * @return a {@link OnUserCreateStartHandler} + */ + @jakarta.annotation.Nullable + public OnUserCreateStartHandler getOnUserCreateStart() { + return this.backingStore.get("onUserCreateStart"); + } + /** + * Serializes information the 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("onAttributeCollection", this.getOnAttributeCollection()); + writer.writeObjectValue("onAuthenticationMethodLoadStart", this.getOnAuthenticationMethodLoadStart()); + writer.writeObjectValue("onInteractiveAuthFlowStart", this.getOnInteractiveAuthFlowStart()); + writer.writeObjectValue("onUserCreateStart", this.getOnUserCreateStart()); + } + /** + * Sets the onAttributeCollection property value. The configuration for what to invoke when attributes are ready to be collected from the user. + * @param value Value to set for the onAttributeCollection property. + */ + public void setOnAttributeCollection(@jakarta.annotation.Nullable final OnAttributeCollectionHandler value) { + this.backingStore.set("onAttributeCollection", value); + } + /** + * Sets the onAuthenticationMethodLoadStart property value. Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. + * @param value Value to set for the onAuthenticationMethodLoadStart property. + */ + public void setOnAuthenticationMethodLoadStart(@jakarta.annotation.Nullable final OnAuthenticationMethodLoadStartHandler value) { + this.backingStore.set("onAuthenticationMethodLoadStart", value); + } + /** + * Sets the onInteractiveAuthFlowStart property value. Required. The configuration for what to invoke when an authentication flow is ready to be initiated. + * @param value Value to set for the onInteractiveAuthFlowStart property. + */ + public void setOnInteractiveAuthFlowStart(@jakarta.annotation.Nullable final OnInteractiveAuthFlowStartHandler value) { + this.backingStore.set("onInteractiveAuthFlowStart", value); + } + /** + * Sets the onUserCreateStart property value. The configuration for what to invoke during user creation. + * @param value Value to set for the onUserCreateStart property. + */ + public void setOnUserCreateStart(@jakarta.annotation.Nullable final OnUserCreateStartHandler value) { + this.backingStore.set("onUserCreateStart", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse.java new file mode 100644 index 00000000000..2415025073d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse.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 ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse} and sets the default values. + */ + public ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse() { + 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 ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ExternalUsersSelfServiceSignUpEventsFlowCollectionResponse(); + } + /** + * 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(ExternalUsersSelfServiceSignUpEventsFlow::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/FileStorage.java b/src/main/java/com/microsoft/graph/generated/models/FileStorage.java new file mode 100644 index 00000000000..d83d329bf9f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/FileStorage.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 FileStorage extends Entity implements Parsable { + /** + * Instantiates a new {@link FileStorage} and sets the default values. + */ + public FileStorage() { + 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 FileStorage} + */ + @jakarta.annotation.Nonnull + public static FileStorage createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new FileStorage(); + } + /** + * Gets the containers property value. The containers property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getContainers() { + return this.backingStore.get("containers"); + } + /** + * 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("containers", (n) -> { this.setContainers(n.getCollectionOfObjectValues(FileStorageContainer::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.writeCollectionOfObjectValues("containers", this.getContainers()); + } + /** + * Sets the containers property value. The containers property + * @param value Value to set for the containers property. + */ + public void setContainers(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("containers", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/FileStorageContainer.java b/src/main/java/com/microsoft/graph/generated/models/FileStorageContainer.java new file mode 100644 index 00000000000..f30fa6815c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/FileStorageContainer.java @@ -0,0 +1,199 @@ +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.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.UUID; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class FileStorageContainer extends Entity implements Parsable { + /** + * Instantiates a new {@link FileStorageContainer} and sets the default values. + */ + public FileStorageContainer() { + 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 FileStorageContainer} + */ + @jakarta.annotation.Nonnull + public static FileStorageContainer createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new FileStorageContainer(); + } + /** + * Gets the containerTypeId property value. Container type ID of the fileStorageContainer. For details about container types, see Container Types. Each container must have only one container type. Read-only. + * @return a {@link UUID} + */ + @jakarta.annotation.Nullable + public UUID getContainerTypeId() { + return this.backingStore.get("containerTypeId"); + } + /** + * Gets the createdDateTime property value. Date and time of the fileStorageContainer creation. Read-only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } + /** + * Gets the customProperties property value. Custom property collection for the fileStorageContainer. Read-write. + * @return a {@link FileStorageContainerCustomPropertyDictionary} + */ + @jakarta.annotation.Nullable + public FileStorageContainerCustomPropertyDictionary getCustomProperties() { + return this.backingStore.get("customProperties"); + } + /** + * Gets the description property value. Provides a user-visible description of the fileStorageContainer. Read-write. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDescription() { + return this.backingStore.get("description"); + } + /** + * Gets the displayName property value. The display name of the fileStorageContainer. Read-write. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDisplayName() { + return this.backingStore.get("displayName"); + } + /** + * Gets the drive property value. The drive of the resource fileStorageContainer. Read-only. + * @return a {@link Drive} + */ + @jakarta.annotation.Nullable + public Drive getDrive() { + return this.backingStore.get("drive"); + } + /** + * 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("containerTypeId", (n) -> { this.setContainerTypeId(n.getUUIDValue()); }); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("customProperties", (n) -> { this.setCustomProperties(n.getObjectValue(FileStorageContainerCustomPropertyDictionary::createFromDiscriminatorValue)); }); + deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); }); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("drive", (n) -> { this.setDrive(n.getObjectValue(Drive::createFromDiscriminatorValue)); }); + deserializerMap.put("permissions", (n) -> { this.setPermissions(n.getCollectionOfObjectValues(Permission::createFromDiscriminatorValue)); }); + deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(FileStorageContainerStatus::forValue)); }); + deserializerMap.put("viewpoint", (n) -> { this.setViewpoint(n.getObjectValue(FileStorageContainerViewpoint::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the permissions property value. The set of permissions for users in the fileStorageContainer. Permission for each user is set by the roles property. The possible values are 'reader', 'writer', 'manager', and 'owner'. Read-write. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getPermissions() { + return this.backingStore.get("permissions"); + } + /** + * Gets the status property value. Status of the fileStorageContainer. Containers are created as inactive and require activation. Inactive containers are subjected to automatic deletion in 24 hours. The possible values are: inactive, active. Read-only. + * @return a {@link FileStorageContainerStatus} + */ + @jakarta.annotation.Nullable + public FileStorageContainerStatus getStatus() { + return this.backingStore.get("status"); + } + /** + * Gets the viewpoint property value. Data specific to the current user. Read-only. + * @return a {@link FileStorageContainerViewpoint} + */ + @jakarta.annotation.Nullable + public FileStorageContainerViewpoint getViewpoint() { + return this.backingStore.get("viewpoint"); + } + /** + * Serializes information the 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.writeUUIDValue("containerTypeId", this.getContainerTypeId()); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); + writer.writeObjectValue("customProperties", this.getCustomProperties()); + writer.writeStringValue("description", this.getDescription()); + writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeObjectValue("drive", this.getDrive()); + writer.writeCollectionOfObjectValues("permissions", this.getPermissions()); + writer.writeEnumValue("status", this.getStatus()); + writer.writeObjectValue("viewpoint", this.getViewpoint()); + } + /** + * Sets the containerTypeId property value. Container type ID of the fileStorageContainer. For details about container types, see Container Types. Each container must have only one container type. Read-only. + * @param value Value to set for the containerTypeId property. + */ + public void setContainerTypeId(@jakarta.annotation.Nullable final UUID value) { + this.backingStore.set("containerTypeId", value); + } + /** + * Sets the createdDateTime property value. Date and time of the fileStorageContainer creation. Read-only. + * @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 customProperties property value. Custom property collection for the fileStorageContainer. Read-write. + * @param value Value to set for the customProperties property. + */ + public void setCustomProperties(@jakarta.annotation.Nullable final FileStorageContainerCustomPropertyDictionary value) { + this.backingStore.set("customProperties", value); + } + /** + * Sets the description property value. Provides a user-visible description of the fileStorageContainer. Read-write. + * @param value Value to set for the description property. + */ + public void setDescription(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("description", value); + } + /** + * Sets the displayName property value. The display name of the fileStorageContainer. Read-write. + * @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 drive property value. The drive of the resource fileStorageContainer. Read-only. + * @param value Value to set for the drive property. + */ + public void setDrive(@jakarta.annotation.Nullable final Drive value) { + this.backingStore.set("drive", value); + } + /** + * Sets the permissions property value. The set of permissions for users in the fileStorageContainer. Permission for each user is set by the roles property. The possible values are 'reader', 'writer', 'manager', and 'owner'. Read-write. + * @param value Value to set for the permissions property. + */ + public void setPermissions(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("permissions", value); + } + /** + * Sets the status property value. Status of the fileStorageContainer. Containers are created as inactive and require activation. Inactive containers are subjected to automatic deletion in 24 hours. The possible values are: inactive, active. Read-only. + * @param value Value to set for the status property. + */ + public void setStatus(@jakarta.annotation.Nullable final FileStorageContainerStatus value) { + this.backingStore.set("status", value); + } + /** + * Sets the viewpoint property value. Data specific to the current user. Read-only. + * @param value Value to set for the viewpoint property. + */ + public void setViewpoint(@jakarta.annotation.Nullable final FileStorageContainerViewpoint value) { + this.backingStore.set("viewpoint", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/FileStorageContainerCollectionResponse.java b/src/main/java/com/microsoft/graph/generated/models/FileStorageContainerCollectionResponse.java new file mode 100644 index 00000000000..4f8399d388a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/FileStorageContainerCollectionResponse.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 FileStorageContainerCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link FileStorageContainerCollectionResponse} and sets the default values. + */ + public FileStorageContainerCollectionResponse() { + 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 FileStorageContainerCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static FileStorageContainerCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new FileStorageContainerCollectionResponse(); + } + /** + * 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(FileStorageContainer::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/FileStorageContainerCustomPropertyDictionary.java b/src/main/java/com/microsoft/graph/generated/models/FileStorageContainerCustomPropertyDictionary.java new file mode 100644 index 00000000000..2a04f370ab1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/FileStorageContainerCustomPropertyDictionary.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 FileStorageContainerCustomPropertyDictionary extends Dictionary implements Parsable { + /** + * Instantiates a new {@link FileStorageContainerCustomPropertyDictionary} and sets the default values. + */ + public FileStorageContainerCustomPropertyDictionary() { + 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 FileStorageContainerCustomPropertyDictionary} + */ + @jakarta.annotation.Nonnull + public static FileStorageContainerCustomPropertyDictionary createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new FileStorageContainerCustomPropertyDictionary(); + } + /** + * 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/FileStorageContainerStatus.java b/src/main/java/com/microsoft/graph/generated/models/FileStorageContainerStatus.java new file mode 100644 index 00000000000..526ffa74319 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/FileStorageContainerStatus.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 FileStorageContainerStatus implements ValuedEnum { + Inactive("inactive"), + Active("active"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + FileStorageContainerStatus(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static FileStorageContainerStatus forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "inactive": return Inactive; + case "active": return Active; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/FileStorageContainerViewpoint.java b/src/main/java/com/microsoft/graph/generated/models/FileStorageContainerViewpoint.java new file mode 100644 index 00000000000..06675e5d251 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/FileStorageContainerViewpoint.java @@ -0,0 +1,124 @@ +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 FileStorageContainerViewpoint implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link FileStorageContainerViewpoint} and sets the default values. + */ + public FileStorageContainerViewpoint() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link FileStorageContainerViewpoint} + */ + @jakarta.annotation.Nonnull + public static FileStorageContainerViewpoint createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new FileStorageContainerViewpoint(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(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 effectiveRole property value. The current user's effective role. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getEffectiveRole() { + return this.backingStore.get("effectiveRole"); + } + /** + * 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("effectiveRole", (n) -> { this.setEffectiveRole(n.getStringValue()); }); + 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.writeStringValue("effectiveRole", this.getEffectiveRole()); + 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 backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the effectiveRole property value. The current user's effective role. Read-only. + * @param value Value to set for the effectiveRole property. + */ + public void setEffectiveRole(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("effectiveRole", 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/IdentityContainer.java b/src/main/java/com/microsoft/graph/generated/models/IdentityContainer.java index 7e6f0699386..c89fac9323d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/IdentityContainer.java +++ b/src/main/java/com/microsoft/graph/generated/models/IdentityContainer.java @@ -40,6 +40,14 @@ public java.util.List getApiConnectors() { public java.util.List getAuthenticationEventListeners() { return this.backingStore.get("authenticationEventListeners"); } + /** + * Gets the authenticationEventsFlows property value. Represents the entry point for self-service sign-up and sign-in user flows in both Microsoft Entra workforce and external tenants. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAuthenticationEventsFlows() { + return this.backingStore.get("authenticationEventsFlows"); + } /** * Gets the b2xUserFlows property value. Represents entry point for B2X/self-service sign-up identity userflows. * @return a {@link java.util.List} @@ -73,6 +81,7 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("apiConnectors", (n) -> { this.setApiConnectors(n.getCollectionOfObjectValues(IdentityApiConnector::createFromDiscriminatorValue)); }); deserializerMap.put("authenticationEventListeners", (n) -> { this.setAuthenticationEventListeners(n.getCollectionOfObjectValues(AuthenticationEventListener::createFromDiscriminatorValue)); }); + deserializerMap.put("authenticationEventsFlows", (n) -> { this.setAuthenticationEventsFlows(n.getCollectionOfObjectValues(AuthenticationEventsFlow::createFromDiscriminatorValue)); }); deserializerMap.put("b2xUserFlows", (n) -> { this.setB2xUserFlows(n.getCollectionOfObjectValues(B2xIdentityUserFlow::createFromDiscriminatorValue)); }); deserializerMap.put("conditionalAccess", (n) -> { this.setConditionalAccess(n.getObjectValue(ConditionalAccessRoot::createFromDiscriminatorValue)); }); deserializerMap.put("customAuthenticationExtensions", (n) -> { this.setCustomAuthenticationExtensions(n.getCollectionOfObjectValues(CustomAuthenticationExtension::createFromDiscriminatorValue)); }); @@ -105,6 +114,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeCollectionOfObjectValues("apiConnectors", this.getApiConnectors()); writer.writeCollectionOfObjectValues("authenticationEventListeners", this.getAuthenticationEventListeners()); + writer.writeCollectionOfObjectValues("authenticationEventsFlows", this.getAuthenticationEventsFlows()); writer.writeCollectionOfObjectValues("b2xUserFlows", this.getB2xUserFlows()); writer.writeObjectValue("conditionalAccess", this.getConditionalAccess()); writer.writeCollectionOfObjectValues("customAuthenticationExtensions", this.getCustomAuthenticationExtensions()); @@ -125,6 +135,13 @@ public void setApiConnectors(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("authenticationEventListeners", value); } + /** + * Sets the authenticationEventsFlows property value. Represents the entry point for self-service sign-up and sign-in user flows in both Microsoft Entra workforce and external tenants. + * @param value Value to set for the authenticationEventsFlows property. + */ + public void setAuthenticationEventsFlows(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("authenticationEventsFlows", value); + } /** * Sets the b2xUserFlows property value. Represents entry point for B2X/self-service sign-up identity userflows. * @param value Value to set for the b2xUserFlows property. diff --git a/src/main/java/com/microsoft/graph/generated/models/IdentityUserFlowAttribute.java b/src/main/java/com/microsoft/graph/generated/models/IdentityUserFlowAttribute.java index 03a3dc2e6c7..18218cd88f9 100644 --- a/src/main/java/com/microsoft/graph/generated/models/IdentityUserFlowAttribute.java +++ b/src/main/java/com/microsoft/graph/generated/models/IdentityUserFlowAttribute.java @@ -41,7 +41,7 @@ public IdentityUserFlowAttributeDataType getDataType() { return this.backingStore.get("dataType"); } /** - * Gets the description property value. The description of the user flow attribute that's shown to the user at the time of sign-up. + * Gets the description property value. The description of the user flow attribute that's shown to the user at the time of sign up. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -97,7 +97,7 @@ public void setDataType(@jakarta.annotation.Nullable final IdentityUserFlowAttri this.backingStore.set("dataType", value); } /** - * Sets the description property value. The description of the user flow attribute that's shown to the user at the time of sign-up. + * Sets the description property value. The description of the user flow attribute that's shown to the user at the time of sign up. * @param value Value to set for the description property. */ public void setDescription(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/OnAttributeCollectionExternalUsersSelfServiceSignUp.java b/src/main/java/com/microsoft/graph/generated/models/OnAttributeCollectionExternalUsersSelfServiceSignUp.java new file mode 100644 index 00000000000..8cffa4d5233 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OnAttributeCollectionExternalUsersSelfServiceSignUp.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 OnAttributeCollectionExternalUsersSelfServiceSignUp extends OnAttributeCollectionHandler implements Parsable { + /** + * Instantiates a new {@link OnAttributeCollectionExternalUsersSelfServiceSignUp} and sets the default values. + */ + public OnAttributeCollectionExternalUsersSelfServiceSignUp() { + super(); + this.setOdataType("#microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link OnAttributeCollectionExternalUsersSelfServiceSignUp} + */ + @jakarta.annotation.Nonnull + public static OnAttributeCollectionExternalUsersSelfServiceSignUp createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OnAttributeCollectionExternalUsersSelfServiceSignUp(); + } + /** + * Gets the attributeCollectionPage property value. Required. The configuration for how attributes are displayed in the sign up experience defined by a user flow, like the externalUsersSelfServiceSignupEventsFlow, specifically on the attribute collection page. + * @return a {@link AuthenticationAttributeCollectionPage} + */ + @jakarta.annotation.Nullable + public AuthenticationAttributeCollectionPage getAttributeCollectionPage() { + return this.backingStore.get("attributeCollectionPage"); + } + /** + * Gets the attributes property value. The attributes property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAttributes() { + return this.backingStore.get("attributes"); + } + /** + * 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("attributeCollectionPage", (n) -> { this.setAttributeCollectionPage(n.getObjectValue(AuthenticationAttributeCollectionPage::createFromDiscriminatorValue)); }); + deserializerMap.put("attributes", (n) -> { this.setAttributes(n.getCollectionOfObjectValues(IdentityUserFlowAttribute::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("attributeCollectionPage", this.getAttributeCollectionPage()); + writer.writeCollectionOfObjectValues("attributes", this.getAttributes()); + } + /** + * Sets the attributeCollectionPage property value. Required. The configuration for how attributes are displayed in the sign up experience defined by a user flow, like the externalUsersSelfServiceSignupEventsFlow, specifically on the attribute collection page. + * @param value Value to set for the attributeCollectionPage property. + */ + public void setAttributeCollectionPage(@jakarta.annotation.Nullable final AuthenticationAttributeCollectionPage value) { + this.backingStore.set("attributeCollectionPage", value); + } + /** + * Sets the attributes property value. The attributes property + * @param value Value to set for the attributes property. + */ + public void setAttributes(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("attributes", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OnAttributeCollectionHandler.java b/src/main/java/com/microsoft/graph/generated/models/OnAttributeCollectionHandler.java new file mode 100644 index 00000000000..1d33d80eb2a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OnAttributeCollectionHandler.java @@ -0,0 +1,114 @@ +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 OnAttributeCollectionHandler implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link OnAttributeCollectionHandler} and sets the default values. + */ + public OnAttributeCollectionHandler() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link OnAttributeCollectionHandler} + */ + @jakarta.annotation.Nonnull + public static OnAttributeCollectionHandler 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.onAttributeCollectionExternalUsersSelfServiceSignUp": return new OnAttributeCollectionExternalUsersSelfServiceSignUp(); + } + } + return new OnAttributeCollectionHandler(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("@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.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 backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = 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/OnAttributeCollectionListener.java b/src/main/java/com/microsoft/graph/generated/models/OnAttributeCollectionListener.java new file mode 100644 index 00000000000..763d242197f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OnAttributeCollectionListener.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 OnAttributeCollectionListener extends AuthenticationEventListener implements Parsable { + /** + * Instantiates a new {@link OnAttributeCollectionListener} and sets the default values. + */ + public OnAttributeCollectionListener() { + super(); + this.setOdataType("#microsoft.graph.onAttributeCollectionListener"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link OnAttributeCollectionListener} + */ + @jakarta.annotation.Nonnull + public static OnAttributeCollectionListener createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OnAttributeCollectionListener(); + } + /** + * 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("handler", (n) -> { this.setHandler(n.getObjectValue(OnAttributeCollectionHandler::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the handler property value. Required. Configuration for what to invoke if the event resolves to this listener. + * @return a {@link OnAttributeCollectionHandler} + */ + @jakarta.annotation.Nullable + public OnAttributeCollectionHandler getHandler() { + return this.backingStore.get("handler"); + } + /** + * Serializes information the 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("handler", this.getHandler()); + } + /** + * Sets the handler property value. Required. Configuration for what to invoke if the event resolves to this listener. + * @param value Value to set for the handler property. + */ + public void setHandler(@jakarta.annotation.Nullable final OnAttributeCollectionHandler value) { + this.backingStore.set("handler", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp.java b/src/main/java/com/microsoft/graph/generated/models/OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp.java new file mode 100644 index 00000000000..b4c1dcd1f58 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp.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 OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp extends OnAuthenticationMethodLoadStartHandler implements Parsable { + /** + * Instantiates a new {@link OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp} and sets the default values. + */ + public OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp() { + super(); + this.setOdataType("#microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp} + */ + @jakarta.annotation.Nonnull + public static OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp(); + } + /** + * 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("identityProviders", (n) -> { this.setIdentityProviders(n.getCollectionOfObjectValues(IdentityProviderBase::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the identityProviders property value. The identityProviders property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getIdentityProviders() { + return this.backingStore.get("identityProviders"); + } + /** + * Serializes information the 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("identityProviders", this.getIdentityProviders()); + } + /** + * Sets the identityProviders property value. The identityProviders property + * @param value Value to set for the identityProviders property. + */ + public void setIdentityProviders(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("identityProviders", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OnAuthenticationMethodLoadStartHandler.java b/src/main/java/com/microsoft/graph/generated/models/OnAuthenticationMethodLoadStartHandler.java new file mode 100644 index 00000000000..dfe868bc577 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OnAuthenticationMethodLoadStartHandler.java @@ -0,0 +1,114 @@ +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 OnAuthenticationMethodLoadStartHandler implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link OnAuthenticationMethodLoadStartHandler} and sets the default values. + */ + public OnAuthenticationMethodLoadStartHandler() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link OnAuthenticationMethodLoadStartHandler} + */ + @jakarta.annotation.Nonnull + public static OnAuthenticationMethodLoadStartHandler 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.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp": return new OnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp(); + } + } + return new OnAuthenticationMethodLoadStartHandler(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("@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.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 backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = 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/OnAuthenticationMethodLoadStartListener.java b/src/main/java/com/microsoft/graph/generated/models/OnAuthenticationMethodLoadStartListener.java new file mode 100644 index 00000000000..de44b295807 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OnAuthenticationMethodLoadStartListener.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 OnAuthenticationMethodLoadStartListener extends AuthenticationEventListener implements Parsable { + /** + * Instantiates a new {@link OnAuthenticationMethodLoadStartListener} and sets the default values. + */ + public OnAuthenticationMethodLoadStartListener() { + super(); + this.setOdataType("#microsoft.graph.onAuthenticationMethodLoadStartListener"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link OnAuthenticationMethodLoadStartListener} + */ + @jakarta.annotation.Nonnull + public static OnAuthenticationMethodLoadStartListener createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OnAuthenticationMethodLoadStartListener(); + } + /** + * 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("handler", (n) -> { this.setHandler(n.getObjectValue(OnAuthenticationMethodLoadStartHandler::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the handler property value. Required. Configuration for what to invoke if the event resolves to this listener. This lets us define potential handler configurations per-event. + * @return a {@link OnAuthenticationMethodLoadStartHandler} + */ + @jakarta.annotation.Nullable + public OnAuthenticationMethodLoadStartHandler getHandler() { + return this.backingStore.get("handler"); + } + /** + * Serializes information the 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("handler", this.getHandler()); + } + /** + * Sets the handler property value. Required. Configuration for what to invoke if the event resolves to this listener. This lets us define potential handler configurations per-event. + * @param value Value to set for the handler property. + */ + public void setHandler(@jakarta.annotation.Nullable final OnAuthenticationMethodLoadStartHandler value) { + this.backingStore.set("handler", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp.java b/src/main/java/com/microsoft/graph/generated/models/OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp.java new file mode 100644 index 00000000000..fe95a1961e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp.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 OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp extends OnInteractiveAuthFlowStartHandler implements Parsable { + /** + * Instantiates a new {@link OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp} and sets the default values. + */ + public OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp() { + super(); + this.setOdataType("#microsoft.graph.onInteractiveAuthFlowStartExternalUsersSelfServiceSignUp"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp} + */ + @jakarta.annotation.Nonnull + public static OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp(); + } + /** + * 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("isSignUpAllowed", (n) -> { this.setIsSignUpAllowed(n.getBooleanValue()); }); + return deserializerMap; + } + /** + * Gets the isSignUpAllowed property value. Optional. Specifies whether the authentication flow includes an option to sign up (create account) and sign in. Default value is false meaning only sign in is enabled. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsSignUpAllowed() { + return this.backingStore.get("isSignUpAllowed"); + } + /** + * Serializes information the 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("isSignUpAllowed", this.getIsSignUpAllowed()); + } + /** + * Sets the isSignUpAllowed property value. Optional. Specifies whether the authentication flow includes an option to sign up (create account) and sign in. Default value is false meaning only sign in is enabled. + * @param value Value to set for the isSignUpAllowed property. + */ + public void setIsSignUpAllowed(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isSignUpAllowed", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OnInteractiveAuthFlowStartHandler.java b/src/main/java/com/microsoft/graph/generated/models/OnInteractiveAuthFlowStartHandler.java new file mode 100644 index 00000000000..b8634b9f3fd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OnInteractiveAuthFlowStartHandler.java @@ -0,0 +1,114 @@ +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 OnInteractiveAuthFlowStartHandler implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link OnInteractiveAuthFlowStartHandler} and sets the default values. + */ + public OnInteractiveAuthFlowStartHandler() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link OnInteractiveAuthFlowStartHandler} + */ + @jakarta.annotation.Nonnull + public static OnInteractiveAuthFlowStartHandler 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.onInteractiveAuthFlowStartExternalUsersSelfServiceSignUp": return new OnInteractiveAuthFlowStartExternalUsersSelfServiceSignUp(); + } + } + return new OnInteractiveAuthFlowStartHandler(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("@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.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 backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = 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/OnInteractiveAuthFlowStartListener.java b/src/main/java/com/microsoft/graph/generated/models/OnInteractiveAuthFlowStartListener.java new file mode 100644 index 00000000000..88a51b36cd1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OnInteractiveAuthFlowStartListener.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 OnInteractiveAuthFlowStartListener extends AuthenticationEventListener implements Parsable { + /** + * Instantiates a new {@link OnInteractiveAuthFlowStartListener} and sets the default values. + */ + public OnInteractiveAuthFlowStartListener() { + super(); + this.setOdataType("#microsoft.graph.onInteractiveAuthFlowStartListener"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link OnInteractiveAuthFlowStartListener} + */ + @jakarta.annotation.Nonnull + public static OnInteractiveAuthFlowStartListener createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OnInteractiveAuthFlowStartListener(); + } + /** + * 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("handler", (n) -> { this.setHandler(n.getObjectValue(OnInteractiveAuthFlowStartHandler::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the handler property value. Required. Configuration for what to invoke if the event resolves to this listener. This lets us define potential handler configurations per-event. + * @return a {@link OnInteractiveAuthFlowStartHandler} + */ + @jakarta.annotation.Nullable + public OnInteractiveAuthFlowStartHandler getHandler() { + return this.backingStore.get("handler"); + } + /** + * Serializes information the 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("handler", this.getHandler()); + } + /** + * Sets the handler property value. Required. Configuration for what to invoke if the event resolves to this listener. This lets us define potential handler configurations per-event. + * @param value Value to set for the handler property. + */ + public void setHandler(@jakarta.annotation.Nullable final OnInteractiveAuthFlowStartHandler value) { + this.backingStore.set("handler", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OnUserCreateStartExternalUsersSelfServiceSignUp.java b/src/main/java/com/microsoft/graph/generated/models/OnUserCreateStartExternalUsersSelfServiceSignUp.java new file mode 100644 index 00000000000..87529041617 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OnUserCreateStartExternalUsersSelfServiceSignUp.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 OnUserCreateStartExternalUsersSelfServiceSignUp extends OnUserCreateStartHandler implements Parsable { + /** + * Instantiates a new {@link OnUserCreateStartExternalUsersSelfServiceSignUp} and sets the default values. + */ + public OnUserCreateStartExternalUsersSelfServiceSignUp() { + super(); + this.setOdataType("#microsoft.graph.onUserCreateStartExternalUsersSelfServiceSignUp"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link OnUserCreateStartExternalUsersSelfServiceSignUp} + */ + @jakarta.annotation.Nonnull + public static OnUserCreateStartExternalUsersSelfServiceSignUp createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OnUserCreateStartExternalUsersSelfServiceSignUp(); + } + /** + * 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("userTypeToCreate", (n) -> { this.setUserTypeToCreate(n.getEnumValue(UserType::forValue)); }); + return deserializerMap; + } + /** + * Gets the userTypeToCreate property value. The type of user to create. Maps to userType property of user object. The possible values are: member, guest, unknownFutureValue. + * @return a {@link UserType} + */ + @jakarta.annotation.Nullable + public UserType getUserTypeToCreate() { + return this.backingStore.get("userTypeToCreate"); + } + /** + * Serializes information the 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("userTypeToCreate", this.getUserTypeToCreate()); + } + /** + * Sets the userTypeToCreate property value. The type of user to create. Maps to userType property of user object. The possible values are: member, guest, unknownFutureValue. + * @param value Value to set for the userTypeToCreate property. + */ + public void setUserTypeToCreate(@jakarta.annotation.Nullable final UserType value) { + this.backingStore.set("userTypeToCreate", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OnUserCreateStartHandler.java b/src/main/java/com/microsoft/graph/generated/models/OnUserCreateStartHandler.java new file mode 100644 index 00000000000..5b1cb6b4672 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OnUserCreateStartHandler.java @@ -0,0 +1,114 @@ +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 OnUserCreateStartHandler implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link OnUserCreateStartHandler} and sets the default values. + */ + public OnUserCreateStartHandler() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link OnUserCreateStartHandler} + */ + @jakarta.annotation.Nonnull + public static OnUserCreateStartHandler 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.onUserCreateStartExternalUsersSelfServiceSignUp": return new OnUserCreateStartExternalUsersSelfServiceSignUp(); + } + } + return new OnUserCreateStartHandler(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("@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.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 backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = 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/OnUserCreateStartListener.java b/src/main/java/com/microsoft/graph/generated/models/OnUserCreateStartListener.java new file mode 100644 index 00000000000..0e15107dde9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/OnUserCreateStartListener.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 OnUserCreateStartListener extends AuthenticationEventListener implements Parsable { + /** + * Instantiates a new {@link OnUserCreateStartListener} and sets the default values. + */ + public OnUserCreateStartListener() { + super(); + this.setOdataType("#microsoft.graph.onUserCreateStartListener"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link OnUserCreateStartListener} + */ + @jakarta.annotation.Nonnull + public static OnUserCreateStartListener createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OnUserCreateStartListener(); + } + /** + * 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("handler", (n) -> { this.setHandler(n.getObjectValue(OnUserCreateStartHandler::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the handler property value. Required. Configuration for what to invoke if the event resolves to this listener. This lets us define potential handler configurations per-event. + * @return a {@link OnUserCreateStartHandler} + */ + @jakarta.annotation.Nullable + public OnUserCreateStartHandler getHandler() { + return this.backingStore.get("handler"); + } + /** + * Serializes information the 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("handler", this.getHandler()); + } + /** + * Sets the handler property value. Required. Configuration for what to invoke if the event resolves to this listener. This lets us define potential handler configurations per-event. + * @param value Value to set for the handler property. + */ + public void setHandler(@jakarta.annotation.Nullable final OnUserCreateStartHandler value) { + this.backingStore.set("handler", value); + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/OrganizationalBrandingProperties.java b/src/main/java/com/microsoft/graph/generated/models/OrganizationalBrandingProperties.java index e12fd7d78a1..92db81e560d 100644 --- a/src/main/java/com/microsoft/graph/generated/models/OrganizationalBrandingProperties.java +++ b/src/main/java/com/microsoft/graph/generated/models/OrganizationalBrandingProperties.java @@ -41,7 +41,7 @@ public String getBackgroundColor() { return this.backingStore.get("backgroundColor"); } /** - * Gets the backgroundImage property value. Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Gets the backgroundImage property value. Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @return a {@link byte[]} */ @jakarta.annotation.Nullable @@ -81,7 +81,7 @@ public java.util.List getCdnList() { return this.backingStore.get("cdnList"); } /** - * Gets the contentCustomization property value. The contentCustomization property + * Gets the contentCustomization property value. Represents the content options to be customized throughout the authentication flow for a tenant. NOTE: Supported by Microsoft Entra External ID in external tenants only. * @return a {@link ContentCustomization} */ @jakarta.annotation.Nullable @@ -367,7 +367,7 @@ public void setBackgroundColor(@jakarta.annotation.Nullable final String value) this.backingStore.set("backgroundColor", value); } /** - * Sets the backgroundImage property value. Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Sets the backgroundImage property value. Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param value Value to set for the backgroundImage property. */ public void setBackgroundImage(@jakarta.annotation.Nullable final byte[] value) { @@ -402,7 +402,7 @@ public void setCdnList(@jakarta.annotation.Nullable final java.util.List this.backingStore.set("cdnList", value); } /** - * Sets the contentCustomization property value. The contentCustomization property + * Sets the contentCustomization property value. Represents the content options to be customized throughout the authentication flow for a tenant. NOTE: Supported by Microsoft Entra External ID in external tenants only. * @param value Value to set for the contentCustomization property. */ public void setContentCustomization(@jakarta.annotation.Nullable final ContentCustomization value) { diff --git a/src/main/java/com/microsoft/graph/generated/models/SignInActivity.java b/src/main/java/com/microsoft/graph/generated/models/SignInActivity.java index 7c3506a48bb..d8d002592f0 100644 --- a/src/main/java/com/microsoft/graph/generated/models/SignInActivity.java +++ b/src/main/java/com/microsoft/graph/generated/models/SignInActivity.java @@ -62,16 +62,18 @@ public BackingStore getBackingStore() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); + final HashMap> deserializerMap = new HashMap>(7); deserializerMap.put("lastNonInteractiveSignInDateTime", (n) -> { this.setLastNonInteractiveSignInDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("lastNonInteractiveSignInRequestId", (n) -> { this.setLastNonInteractiveSignInRequestId(n.getStringValue()); }); deserializerMap.put("lastSignInDateTime", (n) -> { this.setLastSignInDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("lastSignInRequestId", (n) -> { this.setLastSignInRequestId(n.getStringValue()); }); + deserializerMap.put("lastSuccessfulSignInDateTime", (n) -> { this.setLastSuccessfulSignInDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("lastSuccessfulSignInRequestId", (n) -> { this.setLastSuccessfulSignInRequestId(n.getStringValue()); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); return deserializerMap; } /** - * Gets the lastNonInteractiveSignInDateTime property value. The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted (either successfully or unsuccessfully) to sign in to the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp 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'. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. + * Gets the lastNonInteractiveSignInDateTime property value. The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted (either successfully or unsuccessfully) to sign in to the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. 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. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -87,7 +89,7 @@ public String getLastNonInteractiveSignInRequestId() { return this.backingStore.get("lastNonInteractiveSignInRequestId"); } /** - * Gets the lastSignInDateTime property value. The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted (either successfully or unsuccessfully) to sign in to the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp 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'. Microsoft Entra ID maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. + * Gets the lastSignInDateTime property value. The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted (either successfully or unsuccessfully) to sign in to the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. 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. Microsoft Entra ID maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -102,6 +104,22 @@ public OffsetDateTime getLastSignInDateTime() { public String getLastSignInRequestId() { return this.backingStore.get("lastSignInRequestId"); } + /** + * Gets the lastSuccessfulSignInDateTime property value. The date and time of the user's most recent successful sign-in activity. 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 getLastSuccessfulSignInDateTime() { + return this.backingStore.get("lastSuccessfulSignInDateTime"); + } + /** + * Gets the lastSuccessfulSignInRequestId property value. The request ID of the last successful sign-in. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getLastSuccessfulSignInRequestId() { + return this.backingStore.get("lastSuccessfulSignInRequestId"); + } /** * Gets the @odata.type property value. The OdataType property * @return a {@link String} @@ -120,6 +138,8 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("lastNonInteractiveSignInRequestId", this.getLastNonInteractiveSignInRequestId()); writer.writeOffsetDateTimeValue("lastSignInDateTime", this.getLastSignInDateTime()); writer.writeStringValue("lastSignInRequestId", this.getLastSignInRequestId()); + writer.writeOffsetDateTimeValue("lastSuccessfulSignInDateTime", this.getLastSuccessfulSignInDateTime()); + writer.writeStringValue("lastSuccessfulSignInRequestId", this.getLastSuccessfulSignInRequestId()); writer.writeStringValue("@odata.type", this.getOdataType()); writer.writeAdditionalData(this.getAdditionalData()); } @@ -139,7 +159,7 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the lastNonInteractiveSignInDateTime property value. The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted (either successfully or unsuccessfully) to sign in to the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp 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'. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. + * Sets the lastNonInteractiveSignInDateTime property value. The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted (either successfully or unsuccessfully) to sign in to the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. 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. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. * @param value Value to set for the lastNonInteractiveSignInDateTime property. */ public void setLastNonInteractiveSignInDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { @@ -153,7 +173,7 @@ public void setLastNonInteractiveSignInRequestId(@jakarta.annotation.Nullable fi this.backingStore.set("lastNonInteractiveSignInRequestId", value); } /** - * Sets the lastSignInDateTime property value. The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted (either successfully or unsuccessfully) to sign in to the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp 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'. Microsoft Entra ID maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. + * Sets the lastSignInDateTime property value. The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted (either successfully or unsuccessfully) to sign in to the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. 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. Microsoft Entra ID maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. * @param value Value to set for the lastSignInDateTime property. */ public void setLastSignInDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { @@ -166,6 +186,20 @@ public void setLastSignInDateTime(@jakarta.annotation.Nullable final OffsetDateT public void setLastSignInRequestId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("lastSignInRequestId", value); } + /** + * Sets the lastSuccessfulSignInDateTime property value. The date and time of the user's most recent successful sign-in activity. 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 lastSuccessfulSignInDateTime property. + */ + public void setLastSuccessfulSignInDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastSuccessfulSignInDateTime", value); + } + /** + * Sets the lastSuccessfulSignInRequestId property value. The request ID of the last successful sign-in. + * @param value Value to set for the lastSuccessfulSignInRequestId property. + */ + public void setLastSuccessfulSignInRequestId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("lastSuccessfulSignInRequestId", value); + } /** * Sets the @odata.type property value. The OdataType property * @param value Value to set for the @odata.type property. diff --git a/src/main/java/com/microsoft/graph/generated/models/SiteArchivalDetails.java b/src/main/java/com/microsoft/graph/generated/models/SiteArchivalDetails.java new file mode 100644 index 00000000000..5402b9384e0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/SiteArchivalDetails.java @@ -0,0 +1,124 @@ +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 SiteArchivalDetails implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link SiteArchivalDetails} and sets the default values. + */ + public SiteArchivalDetails() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link SiteArchivalDetails} + */ + @jakarta.annotation.Nonnull + public static SiteArchivalDetails createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new SiteArchivalDetails(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the archiveStatus property value. The archiveStatus property + * @return a {@link SiteArchiveStatus} + */ + @jakarta.annotation.Nullable + public SiteArchiveStatus getArchiveStatus() { + return this.backingStore.get("archiveStatus"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("archiveStatus", (n) -> { this.setArchiveStatus(n.getEnumValue(SiteArchiveStatus::forValue)); }); + 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("archiveStatus", this.getArchiveStatus()); + 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 archiveStatus property value. The archiveStatus property + * @param value Value to set for the archiveStatus property. + */ + public void setArchiveStatus(@jakarta.annotation.Nullable final SiteArchiveStatus value) { + this.backingStore.set("archiveStatus", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = 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/SiteArchiveStatus.java b/src/main/java/com/microsoft/graph/generated/models/SiteArchiveStatus.java new file mode 100644 index 00000000000..378ee340cab --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/SiteArchiveStatus.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 SiteArchiveStatus implements ValuedEnum { + RecentlyArchived("recentlyArchived"), + FullyArchived("fullyArchived"), + Reactivating("reactivating"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + SiteArchiveStatus(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static SiteArchiveStatus forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "recentlyArchived": return RecentlyArchived; + case "fullyArchived": return FullyArchived; + case "reactivating": return Reactivating; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/generated/models/SiteCollection.java b/src/main/java/com/microsoft/graph/generated/models/SiteCollection.java index 1500495f739..6ea275209c7 100644 --- a/src/main/java/com/microsoft/graph/generated/models/SiteCollection.java +++ b/src/main/java/com/microsoft/graph/generated/models/SiteCollection.java @@ -47,6 +47,14 @@ public Map getAdditionalData() { } return value; } + /** + * Gets the archivalDetails property value. The archivalDetails property + * @return a {@link SiteArchivalDetails} + */ + @jakarta.annotation.Nullable + public SiteArchivalDetails getArchivalDetails() { + return this.backingStore.get("archivalDetails"); + } /** * Gets the backingStore property value. Stores model information. * @return a {@link BackingStore} @@ -69,7 +77,8 @@ public String getDataLocationCode() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); + final HashMap> deserializerMap = new HashMap>(5); + deserializerMap.put("archivalDetails", (n) -> { this.setArchivalDetails(n.getObjectValue(SiteArchivalDetails::createFromDiscriminatorValue)); }); deserializerMap.put("dataLocationCode", (n) -> { this.setDataLocationCode(n.getStringValue()); }); deserializerMap.put("hostname", (n) -> { this.setHostname(n.getStringValue()); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); @@ -106,6 +115,7 @@ public Root getRoot() { */ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); + writer.writeObjectValue("archivalDetails", this.getArchivalDetails()); writer.writeStringValue("dataLocationCode", this.getDataLocationCode()); writer.writeStringValue("hostname", this.getHostname()); writer.writeStringValue("@odata.type", this.getOdataType()); @@ -119,6 +129,13 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { this.backingStore.set("additionalData", value); } + /** + * Sets the archivalDetails property value. The archivalDetails property + * @param value Value to set for the archivalDetails property. + */ + public void setArchivalDetails(@jakarta.annotation.Nullable final SiteArchivalDetails value) { + this.backingStore.set("archivalDetails", value); + } /** * Sets the backingStore property value. Stores model information. * @param value Value to set for the backingStore property. diff --git a/src/main/java/com/microsoft/graph/generated/models/Storage.java b/src/main/java/com/microsoft/graph/generated/models/Storage.java new file mode 100644 index 00000000000..9dffa8f71e5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/Storage.java @@ -0,0 +1,124 @@ +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 Storage implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link Storage} and sets the default values. + */ + public Storage() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link Storage} + */ + @jakarta.annotation.Nonnull + public static Storage createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new Storage(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("fileStorage", (n) -> { this.setFileStorage(n.getObjectValue(FileStorage::createFromDiscriminatorValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the fileStorage property value. The fileStorage property + * @return a {@link FileStorage} + */ + @jakarta.annotation.Nullable + public FileStorage getFileStorage() { + return this.backingStore.get("fileStorage"); + } + /** + * 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.writeObjectValue("fileStorage", this.getFileStorage()); + 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 backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the fileStorage property value. The fileStorage property + * @param value Value to set for the fileStorage property. + */ + public void setFileStorage(@jakarta.annotation.Nullable final FileStorage value) { + this.backingStore.set("fileStorage", 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/UserType.java b/src/main/java/com/microsoft/graph/generated/models/UserType.java new file mode 100644 index 00000000000..747208b3f17 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/models/UserType.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 UserType implements ValuedEnum { + Member("member"), + Guest("guest"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + UserType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static UserType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "member": return Member; + case "guest": return Guest; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} 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 67d356ac054..4bf9833b907 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); } /** - * Read properties and relationships of the organization object. + * 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. * @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); } /** - * Read properties and relationships of the organization object. + * 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. * @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; } /** - * Read properties and relationships of the organization object. + * 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. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -215,7 +215,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read properties and relationships of the organization object. + * 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. * @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 { } /** - * Read properties and relationships of the organization object. + * 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. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/organization/item/branding/backgroundimage/BackgroundImageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/organization/item/branding/backgroundimage/BackgroundImageRequestBuilder.java index 7528387c358..ea78e95dda1 100644 --- a/src/main/java/com/microsoft/graph/generated/organization/item/branding/backgroundimage/BackgroundImageRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/organization/item/branding/backgroundimage/BackgroundImageRequestBuilder.java @@ -36,14 +36,14 @@ public BackgroundImageRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/organization/{organization%2Did}/branding/backgroundImage", rawUrl); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @throws ODataError When receiving a 4XX or 5XX status code */ public void delete() { delete(null); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -54,7 +54,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @return a {@link InputStream} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -63,7 +63,7 @@ public InputStream get() { return get(null); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @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 @@ -76,7 +76,7 @@ public InputStream get(@jakarta.annotation.Nullable final java.util.function.Con return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param body Binary request body * @param contentType The request body content type. * @return a {@link InputStream} @@ -87,7 +87,7 @@ public InputStream put(@jakarta.annotation.Nonnull final InputStream body, @jaka return put(body, contentType, null); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param body Binary request body * @param contentType The request body content type. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. @@ -104,7 +104,7 @@ public InputStream put(@jakarta.annotation.Nonnull final InputStream body, @jaka return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -112,7 +112,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -124,7 +124,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -132,7 +132,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -144,7 +144,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param body Binary request body * @param contentType The request body content type. * @return a {@link RequestInformation} @@ -154,7 +154,7 @@ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull fi return toPutRequestInformation(body, contentType, null); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param body Binary request body * @param contentType The request body content type. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/main/java/com/microsoft/graph/generated/organization/item/branding/localizations/item/backgroundimage/BackgroundImageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/organization/item/branding/localizations/item/backgroundimage/BackgroundImageRequestBuilder.java index 935b714d372..f638a8ce8dd 100644 --- a/src/main/java/com/microsoft/graph/generated/organization/item/branding/localizations/item/backgroundimage/BackgroundImageRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/organization/item/branding/localizations/item/backgroundimage/BackgroundImageRequestBuilder.java @@ -36,14 +36,14 @@ public BackgroundImageRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/organization/{organization%2Did}/branding/localizations/{organizationalBrandingLocalization%2Did}/backgroundImage", rawUrl); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @throws ODataError When receiving a 4XX or 5XX status code */ public void delete() { delete(null); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -54,7 +54,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @return a {@link InputStream} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -63,7 +63,7 @@ public InputStream get() { return get(null); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @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 @@ -76,7 +76,7 @@ public InputStream get(@jakarta.annotation.Nullable final java.util.function.Con return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param body Binary request body * @param contentType The request body content type. * @return a {@link InputStream} @@ -87,7 +87,7 @@ public InputStream put(@jakarta.annotation.Nonnull final InputStream body, @jaka return put(body, contentType, null); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param body Binary request body * @param contentType The request body content type. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. @@ -104,7 +104,7 @@ public InputStream put(@jakarta.annotation.Nonnull final InputStream body, @jaka return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -112,7 +112,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -124,7 +124,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -132,7 +132,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -144,7 +144,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param body Binary request body * @param contentType The request body content type. * @return a {@link RequestInformation} @@ -154,7 +154,7 @@ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull fi return toPutRequestInformation(body, contentType, null); } /** - * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image will reduce bandwidth requirements and make the page load faster. + * Image that appears as the background of the sign-in page. The allowed types are PNG or JPEG not smaller than 300 KB and not larger than 1920 1080 pixels. A smaller image reduces bandwidth requirements and make the page load faster. * @param body Binary request body * @param contentType The request body content type. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. 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/policies/crosstenantaccesspolicy/partners/item/identitysynchronization/IdentitySynchronizationRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/policies/crosstenantaccesspolicy/partners/item/identitysynchronization/IdentitySynchronizationRequestBuilder.java index 16a4e5727e8..5e67cb27ede 100644 --- a/src/main/java/com/microsoft/graph/generated/policies/crosstenantaccesspolicy/partners/item/identitysynchronization/IdentitySynchronizationRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/policies/crosstenantaccesspolicy/partners/item/identitysynchronization/IdentitySynchronizationRequestBuilder.java @@ -81,23 +81,23 @@ public CrossTenantIdentitySyncPolicyPartner get(@jakarta.annotation.Nullable fin return this.requestAdapter.send(requestInfo, errorMapping, CrossTenantIdentitySyncPolicyPartner::createFromDiscriminatorValue); } /** - * Update the user synchronization policy of a partner-specific configuration. + * Create a cross-tenant user synchronization policy for a partner-specific configuration. * @param body The request body * @return a {@link CrossTenantIdentitySyncPolicyPartner} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public CrossTenantIdentitySyncPolicyPartner put(@jakarta.annotation.Nonnull final CrossTenantIdentitySyncPolicyPartner body) { return put(body, null); } /** - * Update the user synchronization policy of a partner-specific configuration. + * Create a cross-tenant user synchronization policy for a partner-specific configuration. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link CrossTenantIdentitySyncPolicyPartner} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public CrossTenantIdentitySyncPolicyPartner put(@jakarta.annotation.Nonnull final CrossTenantIdentitySyncPolicyPartner body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the user synchronization policy of a partner-specific configuration. + * Create a cross-tenant user synchronization policy for a partner-specific configuration. * @param body The request body * @return a {@link RequestInformation} */ @@ -157,7 +157,7 @@ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull fi return toPutRequestInformation(body, null); } /** - * Update the user synchronization policy of a partner-specific configuration. + * Create a cross-tenant user synchronization policy for a partner-specific configuration. * @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/security/microsoftgraphsecurityrunhuntingquery/MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/security/microsoftgraphsecurityrunhuntingquery/MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.java index af8d4086c38..abecc1050a8 100644 --- a/src/main/java/com/microsoft/graph/generated/security/microsoftgraphsecurityrunhuntingquery/MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/security/microsoftgraphsecurityrunhuntingquery/MicrosoftGraphSecurityRunHuntingQueryRequestBuilder.java @@ -36,7 +36,7 @@ public MicrosoftGraphSecurityRunHuntingQueryRequestBuilder(@jakarta.annotation.N super(requestAdapter, "{+baseurl}/security/microsoft.graph.security.runHuntingQuery", rawUrl); } /** - * Queries a specified set of event, activity, or entity data supported by Microsoft 365 Defender to proactively look for specific threats in your environment. This is the method for advanced hunting in Microsoft 365 Defender. This method includes a query in Kusto Query Language (KQL). It specifies a data table in the advanced hunting schema and a piped sequence of operators to filter or search that data, and format the query output in specific ways. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft 365 Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft 365 Defender. + * Queries a specified set of event, activity, or entity data supported by Microsoft 365 Defender to proactively look for specific threats in your environment. This method is for advanced hunting in Microsoft 365 Defender. This method includes a query in Kusto Query Language (KQL). It specifies a data table in the advanced hunting schema and a piped sequence of operators to filter or search that data, and format the query output in specific ways. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft 365 Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft 365 Defender. * @param body The request body * @return a {@link HuntingQueryResults} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public HuntingQueryResults post(@jakarta.annotation.Nonnull final RunHuntingQuer return post(body, null); } /** - * Queries a specified set of event, activity, or entity data supported by Microsoft 365 Defender to proactively look for specific threats in your environment. This is the method for advanced hunting in Microsoft 365 Defender. This method includes a query in Kusto Query Language (KQL). It specifies a data table in the advanced hunting schema and a piped sequence of operators to filter or search that data, and format the query output in specific ways. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft 365 Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft 365 Defender. + * Queries a specified set of event, activity, or entity data supported by Microsoft 365 Defender to proactively look for specific threats in your environment. This method is for advanced hunting in Microsoft 365 Defender. This method includes a query in Kusto Query Language (KQL). It specifies a data table in the advanced hunting schema and a piped sequence of operators to filter or search that data, and format the query output in specific ways. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft 365 Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft 365 Defender. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link HuntingQueryResults} @@ -61,7 +61,7 @@ public HuntingQueryResults post(@jakarta.annotation.Nonnull final RunHuntingQuer return this.requestAdapter.send(requestInfo, errorMapping, HuntingQueryResults::createFromDiscriminatorValue); } /** - * Queries a specified set of event, activity, or entity data supported by Microsoft 365 Defender to proactively look for specific threats in your environment. This is the method for advanced hunting in Microsoft 365 Defender. This method includes a query in Kusto Query Language (KQL). It specifies a data table in the advanced hunting schema and a piped sequence of operators to filter or search that data, and format the query output in specific ways. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft 365 Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft 365 Defender. + * Queries a specified set of event, activity, or entity data supported by Microsoft 365 Defender to proactively look for specific threats in your environment. This method is for advanced hunting in Microsoft 365 Defender. This method includes a query in Kusto Query Language (KQL). It specifies a data table in the advanced hunting schema and a piped sequence of operators to filter or search that data, and format the query output in specific ways. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft 365 Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft 365 Defender. * @param body The request body * @return a {@link RequestInformation} */ @@ -70,7 +70,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Queries a specified set of event, activity, or entity data supported by Microsoft 365 Defender to proactively look for specific threats in your environment. This is the method for advanced hunting in Microsoft 365 Defender. This method includes a query in Kusto Query Language (KQL). It specifies a data table in the advanced hunting schema and a piped sequence of operators to filter or search that data, and format the query output in specific ways. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft 365 Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft 365 Defender. + * Queries a specified set of event, activity, or entity data supported by Microsoft 365 Defender to proactively look for specific threats in your environment. This method is for advanced hunting in Microsoft 365 Defender. This method includes a query in Kusto Query Language (KQL). It specifies a data table in the advanced hunting schema and a piped sequence of operators to filter or search that data, and format the query output in specific ways. Find out more about hunting for threats across devices, emails, apps, and identities. Learn about KQL. For information on using advanced hunting in the Microsoft 365 Defender portal, see Proactively hunt for threats with advanced hunting in Microsoft 365 Defender. * @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/sites/SitesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/sites/SitesRequestBuilder.java index 04c3ab85c14..261ae8d06b0 100644 --- a/src/main/java/com/microsoft/graph/generated/sites/SitesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/sites/SitesRequestBuilder.java @@ -95,21 +95,21 @@ public SitesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. + * Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. * @return a {@link SiteCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public SiteCollectionResponse get() { return get(null); } /** - * List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. + * Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. * @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 - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public SiteCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -119,7 +119,7 @@ public SiteCollectionResponse get(@jakarta.annotation.Nullable final java.util.f return this.requestAdapter.send(requestInfo, errorMapping, SiteCollectionResponse::createFromDiscriminatorValue); } /** - * List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. + * Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -127,7 +127,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. + * Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public SitesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU return new SitesRequestBuilder(rawUrl, requestAdapter); } /** - * List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. + * Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. */ @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 new file mode 100644 index 00000000000..b2e92440a0f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/StorageRequestBuilder.java @@ -0,0 +1,193 @@ +package com.microsoft.graph.storage; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.Storage; +import com.microsoft.graph.storage.filestorage.FileStorageRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.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 singleton. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class StorageRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the fileStorage property of the microsoft.graph.storage entity. + * @return a {@link FileStorageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public FileStorageRequestBuilder fileStorage() { + return new FileStorageRequestBuilder(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}/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}/storage{?%24expand,%24select}", rawUrl); + } + /** + * Get storage + * @return a {@link Storage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Storage get() { + return get(null); + } + /** + * Get storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Storage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Storage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Storage::createFromDiscriminatorValue); + } + /** + * Update storage + * @param body The request body + * @return a {@link Storage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Storage patch(@jakarta.annotation.Nonnull final Storage body) { + return patch(body, null); + } + /** + * Update storage + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Storage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Storage patch(@jakarta.annotation.Nonnull final Storage 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, Storage::createFromDiscriminatorValue); + } + /** + * Get storage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get 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 storage + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Storage body) { + return toPatchRequestInformation(body, null); + } + /** + * Update 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 Storage 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); + } + /** + * Get 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/FileStorageRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/FileStorageRequestBuilder.java new file mode 100644 index 00000000000..a6d1d0903e4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/FileStorageRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.storage.filestorage; + +import com.microsoft.graph.models.FileStorage; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.storage.filestorage.containers.ContainersRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the fileStorage property of the microsoft.graph.storage entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class FileStorageRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the containers property of the microsoft.graph.fileStorage entity. + * @return a {@link ContainersRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContainersRequestBuilder containers() { + return new ContainersRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link FileStorageRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public FileStorageRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/fileStorage{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link FileStorageRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public FileStorageRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/fileStorage{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property fileStorage for storage + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property fileStorage 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 fileStorage from storage + * @return a {@link FileStorage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public FileStorage get() { + return get(null); + } + /** + * Get fileStorage from storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link FileStorage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public FileStorage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, FileStorage::createFromDiscriminatorValue); + } + /** + * Update the navigation property fileStorage in storage + * @param body The request body + * @return a {@link FileStorage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public FileStorage patch(@jakarta.annotation.Nonnull final FileStorage body) { + return patch(body, null); + } + /** + * Update the navigation property fileStorage in storage + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link FileStorage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public FileStorage patch(@jakarta.annotation.Nonnull final FileStorage 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, FileStorage::createFromDiscriminatorValue); + } + /** + * Delete navigation property fileStorage for storage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property fileStorage 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 fileStorage from storage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get fileStorage 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 fileStorage in storage + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final FileStorage body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property fileStorage 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 FileStorage 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 FileStorageRequestBuilder} + */ + @jakarta.annotation.Nonnull + public FileStorageRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new FileStorageRequestBuilder(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 fileStorage 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/ContainersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/ContainersRequestBuilder.java new file mode 100644 index 00000000000..e74f201b7b4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/ContainersRequestBuilder.java @@ -0,0 +1,247 @@ +package com.microsoft.graph.storage.filestorage.containers; + +import com.microsoft.graph.models.FileStorageContainer; +import com.microsoft.graph.models.FileStorageContainerCollectionResponse; +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.storage.filestorage.containers.count.CountRequestBuilder; +import com.microsoft.graph.storage.filestorage.containers.item.FileStorageContainerItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the containers property of the microsoft.graph.fileStorage entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ContainersRequestBuilder 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 containers property of the microsoft.graph.fileStorage entity. + * @param fileStorageContainerId The unique identifier of fileStorageContainer + * @return a {@link FileStorageContainerItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public FileStorageContainerItemRequestBuilder byFileStorageContainerId(@jakarta.annotation.Nonnull final String fileStorageContainerId) { + Objects.requireNonNull(fileStorageContainerId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("fileStorageContainer%2Did", fileStorageContainerId); + return new FileStorageContainerItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link ContainersRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContainersRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/fileStorage/containers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ContainersRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContainersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/fileStorage/containers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required. + * @return a {@link FileStorageContainerCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public FileStorageContainerCollectionResponse get() { + return get(null); + } + /** + * Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link FileStorageContainerCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public FileStorageContainerCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, FileStorageContainerCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new fileStorageContainer object. The respective container type identified by containerTypeId must be enabled in the tenant. For delegated calls, the calling user is set as the owner of the fileStorageContainer. + * @param body The request body + * @return a {@link FileStorageContainer} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public FileStorageContainer post(@jakarta.annotation.Nonnull final FileStorageContainer body) { + return post(body, null); + } + /** + * Create a new fileStorageContainer object. The respective container type identified by containerTypeId must be enabled in the tenant. For delegated calls, the calling user is set as the owner of the fileStorageContainer. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link FileStorageContainer} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public FileStorageContainer post(@jakarta.annotation.Nonnull final FileStorageContainer body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, FileStorageContainer::createFromDiscriminatorValue); + } + /** + * Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 fileStorageContainer object. The respective container type identified by containerTypeId must be enabled in the tenant. For delegated calls, the calling user is set as the owner of the fileStorageContainer. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FileStorageContainer body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new fileStorageContainer object. The respective container type identified by containerTypeId must be enabled in the tenant. For delegated calls, the calling user is set as the owner of the fileStorageContainer. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final FileStorageContainer body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ContainersRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContainersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ContainersRequestBuilder(rawUrl, requestAdapter); + } + /** + * Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required. + */ + @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/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/count/CountRequestBuilder.java new file mode 100644 index 00000000000..52efb5c3ca2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.storage.filestorage.containers.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/$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/$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/FileStorageContainerItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/FileStorageContainerItemRequestBuilder.java new file mode 100644 index 00000000000..a88bc8fd96a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/FileStorageContainerItemRequestBuilder.java @@ -0,0 +1,255 @@ +package com.microsoft.graph.storage.filestorage.containers.item; + +import com.microsoft.graph.models.FileStorageContainer; +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.permissions.PermissionsRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the containers property of the microsoft.graph.fileStorage entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class FileStorageContainerItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the activate method. + * @return a {@link ActivateRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ActivateRequestBuilder activate() { + return new ActivateRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the drive property of the microsoft.graph.fileStorageContainer entity. + * @return a {@link DriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DriveRequestBuilder drive() { + return new DriveRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the permissions property of the microsoft.graph.fileStorageContainer entity. + * @return a {@link PermissionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PermissionsRequestBuilder permissions() { + return new PermissionsRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link FileStorageContainerItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public FileStorageContainerItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link FileStorageContainerItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public FileStorageContainerItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property containers for storage + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property containers 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 containers from storage + * @return a {@link FileStorageContainer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public FileStorageContainer get() { + return get(null); + } + /** + * Get containers from storage + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link FileStorageContainer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public FileStorageContainer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, FileStorageContainer::createFromDiscriminatorValue); + } + /** + * Update the navigation property containers in storage + * @param body The request body + * @return a {@link FileStorageContainer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public FileStorageContainer patch(@jakarta.annotation.Nonnull final FileStorageContainer body) { + return patch(body, null); + } + /** + * Update the navigation property containers in storage + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link FileStorageContainer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public FileStorageContainer patch(@jakarta.annotation.Nonnull final FileStorageContainer 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, FileStorageContainer::createFromDiscriminatorValue); + } + /** + * Delete navigation property containers for storage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property containers 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 containers from storage + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get containers 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 containers in storage + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final FileStorageContainer body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property containers 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 FileStorageContainer 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 FileStorageContainerItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public FileStorageContainerItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new FileStorageContainerItemRequestBuilder(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 containers 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/activate/ActivateRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/activate/ActivateRequestBuilder.java new file mode 100644 index 00000000000..4025b5e8225 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/activate/ActivateRequestBuilder.java @@ -0,0 +1,91 @@ +package com.microsoft.graph.storage.filestorage.containers.item.activate; + +import com.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 activate method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ActivateRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ActivateRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ActivateRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/activate", pathParameters); + } + /** + * Instantiates a new {@link ActivateRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ActivateRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/activate", rawUrl); + } + /** + * Invoke action activate + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post() { + post(null); + } + /** + * Invoke action activate + * @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 activate + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Invoke action activate + * @param requestConfiguration 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 ActivateRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ActivateRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ActivateRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} 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 new file mode 100644 index 00000000000..94fe9711298 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/DriveRequestBuilder.java @@ -0,0 +1,329 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive; + +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; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.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.fileStorageContainer entity. + */ +@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 + * @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{?%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{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property drive for storage + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property drive 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 drive of the resource fileStorageContainer. Read-only. + * @return a {@link Drive} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Drive get() { + return get(null); + } + /** + * The drive of the resource fileStorageContainer. Read-only. + * @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); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The drive of the resource fileStorageContainer. 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 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. + * @return a {@link DriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + 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. + */ + @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/bundles/BundlesRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/BundlesRequestBuilder.java new file mode 100644 index 00000000000..ba52f5fe7c0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/BundlesRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..ae3e7fe23af --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..87bb735e429 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/item/DriveItemItemRequestBuilder.java @@ -0,0 +1,138 @@ +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 new file mode 100644 index 00000000000..2108ad6fee5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/bundles/item/content/ContentRequestBuilder.java @@ -0,0 +1,223 @@ +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 new file mode 100644 index 00000000000..d69c660ff6f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/CreatedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +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 new file mode 100644 index 00000000000..1b82d671161 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +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 new file mode 100644 index 00000000000..6b8f91197d7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 new file mode 100644 index 00000000000..4810b941440 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..e9878493cde --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/FollowingRequestBuilder.java @@ -0,0 +1,187 @@ +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 new file mode 100644 index 00000000000..c9309ff4b17 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..3ffd4ffc977 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/item/DriveItemItemRequestBuilder.java @@ -0,0 +1,138 @@ +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 new file mode 100644 index 00000000000..90e6db751a7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/following/item/content/ContentRequestBuilder.java @@ -0,0 +1,223 @@ +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 new file mode 100644 index 00000000000..c4241bfa2b6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/ItemsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..5a6cf334842 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..3d718e5100b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/DriveItemItemRequestBuilder.java @@ -0,0 +1,517 @@ +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 new file mode 100644 index 00000000000..a3de452c500 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/AnalyticsRequestBuilder.java @@ -0,0 +1,255 @@ +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 new file mode 100644 index 00000000000..c3640e20649 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/alltime/AllTimeRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..3018d8f772e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/ItemActivityStatsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..4169400b43c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..3d91cd8aab0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/ItemActivityStatItemRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..c5247be7cf1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/ActivitiesRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..1ce41600d0b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..44a3b6b550a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/ItemActivityItemRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..72cc00156d1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/DriveItemRequestBuilder.java @@ -0,0 +1,138 @@ +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 new file mode 100644 index 00000000000..8b0158e3a3f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/content/ContentRequestBuilder.java @@ -0,0 +1,223 @@ +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 new file mode 100644 index 00000000000..57e7fed3b75 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/analytics/lastsevendays/LastSevenDaysRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..9dea953cf84 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelPostRequestBody.java @@ -0,0 +1,142 @@ +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 new file mode 100644 index 00000000000..fd3b2da90b1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..cf5e78ac41f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinPostRequestBody.java @@ -0,0 +1,124 @@ +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 new file mode 100644 index 00000000000..7910255bd16 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..6dc25c6598c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/checkout/CheckoutRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..9c909e7fa67 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/ChildrenRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..1bb6d067b8e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..9d7fff6b794 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/item/DriveItemItemRequestBuilder.java @@ -0,0 +1,138 @@ +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 new file mode 100644 index 00000000000..1f3e586c6d9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/children/item/content/ContentRequestBuilder.java @@ -0,0 +1,223 @@ +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 new file mode 100644 index 00000000000..5a480b70f20 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/content/ContentRequestBuilder.java @@ -0,0 +1,223 @@ +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 new file mode 100644 index 00000000000..7314af903c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyPostRequestBody.java @@ -0,0 +1,125 @@ +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 new file mode 100644 index 00000000000..f843cd5f501 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..c56c1ef81f9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/CreatedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +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 new file mode 100644 index 00000000000..f5a2c102bab --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +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 new file mode 100644 index 00000000000..6db837fd23d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 new file mode 100644 index 00000000000..7e165c6e98b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..7f18a3f66a3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkPostRequestBody.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..884ce2290eb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..89a6d8dd954 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionPostRequestBody.java @@ -0,0 +1,108 @@ +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 new file mode 100644 index 00000000000..f067ffd9165 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1b9da48aa94 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..e42b47cb5ee --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaRequestBuilder.java @@ -0,0 +1,166 @@ +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 new file mode 100644 index 00000000000..d2e13363be1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..f93a70a0f54 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenRequestBuilder.java @@ -0,0 +1,166 @@ +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 new file mode 100644 index 00000000000..9fd7a24e923 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/extractsensitivitylabels/ExtractSensitivityLabelsRequestBuilder.java @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..9b02e38198e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/follow/FollowRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..e5a2683a209 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyinterval/GetActivitiesByIntervalGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..2624dfacb5c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyinterval/GetActivitiesByIntervalRequestBuilder.java @@ -0,0 +1,166 @@ +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 new file mode 100644 index 00000000000..984f8dc3bad --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..30b6f41b401 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java @@ -0,0 +1,170 @@ +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 new file mode 100644 index 00000000000..47db647eb27 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostRequestBody.java @@ -0,0 +1,227 @@ +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 new file mode 100644 index 00000000000..8721375ee94 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..62a535628f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/invite/InviteRequestBuilder.java @@ -0,0 +1,104 @@ +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 new file mode 100644 index 00000000000..1698669e187 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +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 new file mode 100644 index 00000000000..50b0ba83d72 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +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 new file mode 100644 index 00000000000..685f1efaac9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 new file mode 100644 index 00000000000..e6e0cd59652 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..ad48fb4f752 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/listitem/ListItemRequestBuilder.java @@ -0,0 +1,129 @@ +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/permanentdelete/PermanentDeleteRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permanentdelete/PermanentDeleteRequestBuilder.java new file mode 100644 index 00000000000..2724b6756a5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permanentdelete/PermanentDeleteRequestBuilder.java @@ -0,0 +1,91 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.permanentdelete; + +import com.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 permanentDelete method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class PermanentDeleteRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link PermanentDeleteRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @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); + } + /** + * Instantiates a new {@link PermanentDeleteRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PermanentDeleteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permanentDelete", rawUrl); + } + /** + * Invoke action permanentDelete + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post() { + post(null); + } + /** + * Invoke action permanentDelete + * @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 permanentDelete + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Invoke action permanentDelete + * @param requestConfiguration 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 PermanentDeleteRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PermanentDeleteRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new PermanentDeleteRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.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/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/PermissionsRequestBuilder.java new file mode 100644 index 00000000000..0bb8c99d8ed --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/PermissionsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..a87e36f2f4a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..15449d56d86 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/PermissionItemRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..9c23f4eb07e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostRequestBody.java @@ -0,0 +1,125 @@ +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 new file mode 100644 index 00000000000..7696dde8b8f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..34789fc58f8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantRequestBuilder.java @@ -0,0 +1,104 @@ +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 new file mode 100644 index 00000000000..09f7a01f5ac --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewPostRequestBody.java @@ -0,0 +1,124 @@ +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 new file mode 100644 index 00000000000..99d4c951508 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..0e33912b92e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/restore/RestorePostRequestBody.java @@ -0,0 +1,125 @@ +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 new file mode 100644 index 00000000000..b3e21efa302 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/restore/RestoreRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..346a0d719df --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/retentionlabel/RetentionLabelRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..94a3ad06118 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..c2d78bb5e1e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQRequestBuilder.java @@ -0,0 +1,168 @@ +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 new file mode 100644 index 00000000000..ff2af450f28 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/SubscriptionsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..c6c22b40cfe --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..5793131a3af --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/SubscriptionItemRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..cb2b26928ad --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..a6ef6992a8c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/ThumbnailsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..0480111b89f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..b5664d2e3ed --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/item/ThumbnailSetItemRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..dc57b406dfa --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/unfollow/UnfollowRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..dcdd4ac0a1d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionPostRequestBody.java @@ -0,0 +1,124 @@ +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 new file mode 100644 index 00000000000..3614f33ff66 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..79e8a532494 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/VersionsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..eaffe2e00aa --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..13736079c04 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/item/DriveItemVersionItemRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..371ab3d00a1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/item/content/ContentRequestBuilder.java @@ -0,0 +1,196 @@ +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 new file mode 100644 index 00000000000..29baa8cbc3e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..ca38545f6c2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/WorkbookRequestBuilder.java @@ -0,0 +1,340 @@ +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 new file mode 100644 index 00000000000..02486c20b16 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/ApplicationRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..1fde457cefa --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculatePostRequestBody.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..d5963a6ce57 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculateRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..1fd945518d4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/closesession/CloseSessionRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..0ed8597b348 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/CommentsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..81085d09137 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..a2a95c23a58 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/WorkbookCommentItemRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..bd133aac4f7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..02ea416b608 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..451d0d4bc50 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..f0e0701a077 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionPostRequestBody.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..70719f96bb8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..470172dd42a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/FunctionsRequestBuilder.java @@ -0,0 +1,3522 @@ +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 new file mode 100644 index 00000000000..0dc12c61b5e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.abs; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..daf4e88dbe8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1cd60e7f50e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntPostRequestBody.java @@ -0,0 +1,227 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrint; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getBasis() { + return this.backingStore.get("basis"); + } + /** + * Gets the calcMethod property value. The calcMethod property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("calcMethod", (n) -> { this.setCalcMethod(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("firstInterest", (n) -> { this.setFirstInterest(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("par", (n) -> { this.setPar(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the firstInterest property value. The firstInterest property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFirstInterest() { + return this.backingStore.get("firstInterest"); + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the issue property value. The issue property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getIssue() { + return this.backingStore.get("issue"); + } + /** + * Gets the par property value. The par property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPar() { + return this.backingStore.get("par"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..a069558cde1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2d1dc372f82 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrintm; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("par", (n) -> { this.setPar(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the issue property value. The issue property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getIssue() { + return this.backingStore.get("issue"); + } + /** + * Gets the par property value. The par property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPar() { + return this.backingStore.get("par"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..fdcd42ab96e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b8223e9d90e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acos; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..aadef3538bb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d25ac29cbf5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acosh; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..9d41c550372 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..86284d520f7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acot; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..b6fdbb8919b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c042603edfa --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.acoth; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..791c37efb2e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7b39d586af5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcPostRequestBody.java @@ -0,0 +1,210 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.amordegrc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getBasis() { + return this.backingStore.get("basis"); + } + /** + * Gets the cost property value. The cost property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getCost() { + return this.backingStore.get("cost"); + } + /** + * Gets the datePurchased property value. The datePurchased property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("datePurchased", (n) -> { this.setDatePurchased(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("firstPeriod", (n) -> { this.setFirstPeriod(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the firstPeriod property value. The firstPeriod property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFirstPeriod() { + return this.backingStore.get("firstPeriod"); + } + /** + * Gets the period property value. The period property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPeriod() { + return this.backingStore.get("period"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the salvage property value. The salvage property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..40df5d91515 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..61993663ec8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincPostRequestBody.java @@ -0,0 +1,210 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.amorlinc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getBasis() { + return this.backingStore.get("basis"); + } + /** + * Gets the cost property value. The cost property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getCost() { + return this.backingStore.get("cost"); + } + /** + * Gets the datePurchased property value. The datePurchased property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("datePurchased", (n) -> { this.setDatePurchased(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("firstPeriod", (n) -> { this.setFirstPeriod(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the firstPeriod property value. The firstPeriod property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFirstPeriod() { + return this.backingStore.get("firstPeriod"); + } + /** + * Gets the period property value. The period property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPeriod() { + return this.backingStore.get("period"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the salvage property value. The salvage property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..007c5a4bdd4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a17011f65ba --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.and; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..dbe6c2d2024 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..6339cc4f749 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.arabic; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..2ff4b489692 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..9df3a6bca5e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.areas; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the reference property value. The reference property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..85b7f491584 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..0af81d4c43e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.asc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..accbb7db6a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..38a9a9f7d7b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.asin; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..4b36b1933bc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..0762ec3b22b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.asinh; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..432d2ff1221 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..16c6a108ac2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..2eabf5e0df9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..131bb065571 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2PostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan2; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("yNum", (n) -> { this.setYNum(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the xNum property value. The xNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getXNum() { + return this.backingStore.get("xNum"); + } + /** + * Gets the yNum property value. The yNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..f967c71f31d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2RequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c3cf141ad3f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.atanh; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..c5076c43a33 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e7f5171a3ed --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.avedev; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..df2341715e0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..69ffa08cb1f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AveragePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.average; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..9dcb286c5c0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AverageRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e9166000f3a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageAPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.averagea; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..0ed430d6161 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageARequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..3ad8c6892f8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageif; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the range property value. The range property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..35b636b4fed --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e537bd941e0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageifs; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..11f76fab5d5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..58b52596b64 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bahttext; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..084cbecd0aa --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2483a20f640 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BasePostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.base; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("radix", (n) -> { this.setRadix(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the minLength property value. The minLength property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMinLength() { + return this.backingStore.get("minLength"); + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the radix property value. The radix property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..cac0ea76918 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BaseRequestBuilderEscaped.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..cd510088ac8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.besseli; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the n property value. The n property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getN() { + return this.backingStore.get("n"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..0809ba91b01 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e7a0b15658a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselj; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the n property value. The n property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getN() { + return this.backingStore.get("n"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..09065ec874f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2351861f213 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselk; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the n property value. The n property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getN() { + return this.backingStore.get("n"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..5bffa441448 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..645c47ac738 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bessely; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the n property value. The n property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getN() { + return this.backingStore.get("n"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..db67ebfbc2a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..63705973ea8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistPostRequestBody.java @@ -0,0 +1,193 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json} + */ + @jakarta.annotation.Nullable + public Json getAlpha() { + return this.backingStore.get("alpha"); + } + /** + * Gets the B property value. The B property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json} + */ + @jakarta.annotation.Nullable + public Json getBeta() { + return this.backingStore.get("beta"); + } + /** + * Gets the cumulative property value. The cumulative property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("B", (n) -> { this.setB(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..02f5f7a5e25 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8b16d57c4a0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_inv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json} + */ + @jakarta.annotation.Nullable + public Json getAlpha() { + return this.backingStore.get("alpha"); + } + /** + * Gets the B property value. The B property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("B", (n) -> { this.setB(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the probability property value. The probability property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..e0c52573824 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..73ce4857707 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2dec; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..033ee03827c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..ece0608fbcc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2hex; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the places property value. The places property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..631bb858743 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b17d3503c5e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2oct; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the places property value. The places property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..44281daec4d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..4a4db12b7b3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numberS", (n) -> { this.setNumberS(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("trials", (n) -> { this.setTrials(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the numberS property value. The numberS property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumberS() { + return this.backingStore.get("numberS"); + } + /** + * Gets the probabilityS property value. The probabilityS property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getProbabilityS() { + return this.backingStore.get("probabilityS"); + } + /** + * Gets the trials property value. The trials property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..52d5bfbcdf1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..ec4c12fcc46 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangePostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist_range; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numberS2", (n) -> { this.setNumberS2(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("trials", (n) -> { this.setTrials(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the numberS property value. The numberS property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumberS() { + return this.backingStore.get("numberS"); + } + /** + * Gets the numberS2 property value. The numberS2 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumberS2() { + return this.backingStore.get("numberS2"); + } + /** + * Gets the probabilityS property value. The probabilityS property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getProbabilityS() { + return this.backingStore.get("probabilityS"); + } + /** + * Gets the trials property value. The trials property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..d7b19f35318 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangeRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..dc3aa76e9e4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_inv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("trials", (n) -> { this.setTrials(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the probabilityS property value. The probabilityS property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getProbabilityS() { + return this.backingStore.get("probabilityS"); + } + /** + * Gets the trials property value. The trials property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..5e9d32384d4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..47d6bb1506d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitand; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number1 property value. The number1 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber1() { + return this.backingStore.get("number1"); + } + /** + * Gets the number2 property value. The number2 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..e66e50d5b8c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..71874b62cfe --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitlshift; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("shiftAmount", (n) -> { this.setShiftAmount(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the shiftAmount property value. The shiftAmount property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..33803c1014a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d7812d6eaf8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitor; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number1 property value. The number1 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber1() { + return this.backingStore.get("number1"); + } + /** + * Gets the number2 property value. The number2 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..2b7c74ef5c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b0cc37f299b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitrshift; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("shiftAmount", (n) -> { this.setShiftAmount(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the shiftAmount property value. The shiftAmount property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..3a5b461c504 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..da730a34cb0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitxor; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number1 property value. The number1 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber1() { + return this.backingStore.get("number1"); + } + /** + * Gets the number2 property value. The number2 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..75adfb708b5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..64e3b1c64ec --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_math; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the mode property value. The mode property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMode() { + return this.backingStore.get("mode"); + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the significance property value. The significance property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..9f3f1e57994 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c86e4b46f35 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPrecisePostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_precise; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the significance property value. The significance property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..67cf4b96be9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPreciseRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1c04e0846d1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.charescaped; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..56efae64fe7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..511cf21ebdd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCumulative() { + return this.backingStore.get("cumulative"); + } + /** + * Gets the degFreedom property value. The degFreedom property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..c56a079b375 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..815460419b1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist_rt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..16429f71093 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d8dd48b9086 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the probability property value. The probability property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..7ed9e2d52fb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d09f6b82674 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv_rt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the probability property value. The probability property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..47030229550 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..528262ee539 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChoosePostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.choose; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the indexNum property value. The indexNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getIndexNum() { + return this.backingStore.get("indexNum"); + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..8ed47c2bebe --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChooseRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..6c0c3526250 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.clean; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..2a1d6ab6afe --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..560b35adc8b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.code; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..55661607a3a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodeRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..4a76c9fe738 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.columns; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::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 Json 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 new file mode 100644 index 00000000000..6b12f9c7e01 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..ae9228499ca --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.combin; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the numberChosen property value. The numberChosen property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..5301e99d681 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1f44ac71185 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.combina; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the numberChosen property value. The numberChosen property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..5398f2557a1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..bfb5a190a53 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.complex; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("realNum", (n) -> { this.setRealNum(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("suffix", (n) -> { this.setSuffix(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the iNum property value. The iNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getINum() { + return this.backingStore.get("iNum"); + } + /** + * Gets the realNum property value. The realNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRealNum() { + return this.backingStore.get("realNum"); + } + /** + * Gets the suffix property value. The suffix property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..b67f88a8571 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..3eb89f13677 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenatePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.concatenate; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..ea37c527421 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenateRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..90c435849eb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_norm; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("size", (n) -> { this.setSize(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the size property value. The size property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSize() { + return this.backingStore.get("size"); + } + /** + * Gets the standardDev property value. The standardDev property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..d656728368a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7a01c1e7ffe --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_t; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("size", (n) -> { this.setSize(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the size property value. The size property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSize() { + return this.backingStore.get("size"); + } + /** + * Gets the standardDev property value. The standardDev property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..6e4dce3cfdb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..34007f68402 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.convert; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("toUnit", (n) -> { this.setToUnit(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the fromUnit property value. The fromUnit property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFromUnit() { + return this.backingStore.get("fromUnit"); + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the toUnit property value. The toUnit property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..87e85da65d4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a873d105d99 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cos; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..0bbb657b105 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..67a8794c511 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cosh; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..024f8e870c1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7a407fdb835 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cot; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..dd7d5072300 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d26cab633f5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coth; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..e6b2346ba29 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..088549af0b0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.count; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..47fa932d174 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..82d0aad03c4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountAPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.counta; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..60d492b7369 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountARequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..3cc9a67fd79 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.countblank; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the range property value. The range property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..a51b34eaeb1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e4474e654bf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.countif; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the range property value. The range property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..017f94ea199 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..16dfb79a7fc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.countifs; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..45217da279e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..822c3bf95d1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaybs; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..728fe026c2f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..23600cac5f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdays; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..8e6e24067bd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..bc73063f073 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaysnc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..76f4793d152 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..84f31d44950 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupncd; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..5252ffb1cdc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d18d1b5ace9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupnum; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..62b3c18c8dd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d8da00db503 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.couppcd; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..dea07d86bb1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..da31f16140e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.csc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..8b76056de9d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f498a195e08 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.csch; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..4e9c8d020ae --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..76d42bdbfef --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtPostRequestBody.java @@ -0,0 +1,193 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumipmt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startPeriod", (n) -> { this.setStartPeriod(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the nper property value. The nper property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNper() { + return this.backingStore.get("nper"); + } + /** + * Gets the pv property value. The pv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPv() { + return this.backingStore.get("pv"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the startPeriod property value. The startPeriod property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getStartPeriod() { + return this.backingStore.get("startPeriod"); + } + /** + * Gets the type property value. The type property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..02941222392 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f5f4561f272 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincPostRequestBody.java @@ -0,0 +1,193 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumprinc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startPeriod", (n) -> { this.setStartPeriod(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the nper property value. The nper property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNper() { + return this.backingStore.get("nper"); + } + /** + * Gets the pv property value. The pv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPv() { + return this.backingStore.get("pv"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the startPeriod property value. The startPeriod property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getStartPeriod() { + return this.backingStore.get("startPeriod"); + } + /** + * Gets the type property value. The type property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..0ad9321a5bf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2089dc8a504 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DatePostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.date; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("month", (n) -> { this.setMonth(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("year", (n) -> { this.setYear(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the month property value. The month property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMonth() { + return this.backingStore.get("month"); + } + /** + * Gets the year property value. The year property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..ada03f4c5e3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DateRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..17036bea32a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevaluePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.datevalue; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::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 Json 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 new file mode 100644 index 00000000000..d242135cfab --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevalueRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a00e1a35f3c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaveragePostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.daverage; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCriteria() { + return this.backingStore.get("criteria"); + } + /** + * Gets the database property value. The database property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDatabase() { + return this.backingStore.get("database"); + } + /** + * Gets the field property value. The field property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(Json::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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..647a0a1d469 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaverageRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..fb4040b489f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.day; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the serialNumber property value. The serialNumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..40454612b8c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..52f9737ff2d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.days; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the startDate property value. The startDate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..30b7ae31254 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2cbedc076b2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360PostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.days360; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("method", (n) -> { this.setMethod(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the method property value. The method property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMethod() { + return this.backingStore.get("method"); + } + /** + * Gets the startDate property value. The startDate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..f2bb2404178 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360RequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7d94696cf9e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.db; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("month", (n) -> { this.setMonth(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the life property value. The life property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLife() { + return this.backingStore.get("life"); + } + /** + * Gets the month property value. The month property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMonth() { + return this.backingStore.get("month"); + } + /** + * Gets the period property value. The period property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPeriod() { + return this.backingStore.get("period"); + } + /** + * Gets the salvage property value. The salvage property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..d1860d64dc8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..27862ee8aaf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dbcs; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..865124edb6c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..3e64d8244c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcount; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCriteria() { + return this.backingStore.get("criteria"); + } + /** + * Gets the database property value. The database property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDatabase() { + return this.backingStore.get("database"); + } + /** + * Gets the field property value. The field property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(Json::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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..686c3eacd0c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f6d90151b0b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountAPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcounta; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCriteria() { + return this.backingStore.get("criteria"); + } + /** + * Gets the database property value. The database property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDatabase() { + return this.backingStore.get("database"); + } + /** + * Gets the field property value. The field property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(Json::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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..4ea382ee564 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountARequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..9f3bd0d8e11 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ddb; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCost() { + return this.backingStore.get("cost"); + } + /** + * Gets the factor property value. The factor property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("factor", (n) -> { this.setFactor(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the life property value. The life property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLife() { + return this.backingStore.get("life"); + } + /** + * Gets the period property value. The period property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPeriod() { + return this.backingStore.get("period"); + } + /** + * Gets the salvage property value. The salvage property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..6e95dc7e605 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..040ce5d8f9c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2bin; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the places property value. The places property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..dbb95edba38 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7a278643251 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2hex; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the places property value. The places property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..cbc0e21f7e7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c8829abe0b9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2oct; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the places property value. The places property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..733454f3144 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..6e4e5af9630 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.decimal; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("radix", (n) -> { this.setRadix(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the radix property value. The radix property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..a628aa37232 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..9cb73653bbc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.degrees; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::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 Json 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 new file mode 100644 index 00000000000..39094cdedc9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..0d80eb4caf3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.delta; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number1 property value. The number1 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber1() { + return this.backingStore.get("number1"); + } + /** + * Gets the number2 property value. The number2 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..9f70a3d989a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e4ca79555e6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.devsq; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..bc890f43e71 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..912e6e8a80d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dget; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCriteria() { + return this.backingStore.get("criteria"); + } + /** + * Gets the database property value. The database property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDatabase() { + return this.backingStore.get("database"); + } + /** + * Gets the field property value. The field property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(Json::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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..abc411bb832 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1a5fa96de0f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.disc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the pr property value. The pr property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPr() { + return this.backingStore.get("pr"); + } + /** + * Gets the redemption property value. The redemption property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRedemption() { + return this.backingStore.get("redemption"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..2721462f268 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1d6c557a922 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmax; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCriteria() { + return this.backingStore.get("criteria"); + } + /** + * Gets the database property value. The database property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDatabase() { + return this.backingStore.get("database"); + } + /** + * Gets the field property value. The field property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(Json::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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..6a9807fb953 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..bd71f6e239f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmin; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCriteria() { + return this.backingStore.get("criteria"); + } + /** + * Gets the database property value. The database property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDatabase() { + return this.backingStore.get("database"); + } + /** + * Gets the field property value. The field property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(Json::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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..dc5c10bbb21 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..820af876194 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollar; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..3123ef2dbec --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5469f5d5ba8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDePostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarde; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("fractionalDollar", (n) -> { this.setFractionalDollar(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the fraction property value. The fraction property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFraction() { + return this.backingStore.get("fraction"); + } + /** + * Gets the fractionalDollar property value. The fractionalDollar property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..f619c52e10c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDeRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..72c8e840511 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarfr; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("fraction", (n) -> { this.setFraction(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the fraction property value. The fraction property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..ea518c83c53 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..98c36cd6898 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dproduct; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCriteria() { + return this.backingStore.get("criteria"); + } + /** + * Gets the database property value. The database property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDatabase() { + return this.backingStore.get("database"); + } + /** + * Gets the field property value. The field property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(Json::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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..5ff1fe3596e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..cc5da47700c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdev; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCriteria() { + return this.backingStore.get("criteria"); + } + /** + * Gets the database property value. The database property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDatabase() { + return this.backingStore.get("database"); + } + /** + * Gets the field property value. The field property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(Json::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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..ca38acc0aab --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2f0b3450515 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdevp; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCriteria() { + return this.backingStore.get("criteria"); + } + /** + * Gets the database property value. The database property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDatabase() { + return this.backingStore.get("database"); + } + /** + * Gets the field property value. The field property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(Json::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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..8d2865f0419 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8846625808e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dsum; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCriteria() { + return this.backingStore.get("criteria"); + } + /** + * Gets the database property value. The database property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDatabase() { + return this.backingStore.get("database"); + } + /** + * Gets the field property value. The field property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(Json::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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..b8e320494cc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2928d990704 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationPostRequestBody.java @@ -0,0 +1,193 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.duration; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getBasis() { + return this.backingStore.get("basis"); + } + /** + * Gets the coupon property value. The coupon property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("coupon", (n) -> { this.setCoupon(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSettlement() { + return this.backingStore.get("settlement"); + } + /** + * Gets the yld property value. The yld property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..daa9879c9e6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..02add2c72bb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvar; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCriteria() { + return this.backingStore.get("criteria"); + } + /** + * Gets the database property value. The database property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDatabase() { + return this.backingStore.get("database"); + } + /** + * Gets the field property value. The field property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(Json::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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..eaed3b537d8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..cde6a8abe59 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvarp; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCriteria() { + return this.backingStore.get("criteria"); + } + /** + * Gets the database property value. The database property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDatabase() { + return this.backingStore.get("database"); + } + /** + * Gets the field property value. The field property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(Json::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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..bedec0228c4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..126cae29ba4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ecma_ceiling; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the significance property value. The significance property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..76499357e5c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..3cc820e79e3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdatePostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.edate; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the months property value. The months property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMonths() { + return this.backingStore.get("months"); + } + /** + * Gets the startDate property value. The startDate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..a256e3b79a3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdateRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..ad7a3d6f25b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.effect; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("npery", (n) -> { this.setNpery(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the nominalRate property value. The nominalRate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNominalRate() { + return this.backingStore.get("nominalRate"); + } + /** + * Gets the npery property value. The npery property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..8ec94fd2b9a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..09775cc21ba --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.eomonth; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the months property value. The months property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMonths() { + return this.backingStore.get("months"); + } + /** + * Gets the startDate property value. The startDate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..5a94dd977a2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a53fae559f2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("upperLimit", (n) -> { this.setUpperLimit(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the lowerLimit property value. The lowerLimit property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLowerLimit() { + return this.backingStore.get("lowerLimit"); + } + /** + * Gets the upperLimit property value. The upperLimit property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..7e48a3c8612 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..86a6d1e3d01 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPrecisePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf_precise; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the X property value. The X property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..1905f359089 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPreciseRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..9842c096661 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..05c45168661 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..609e1be08e9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPrecisePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc_precise; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the X property value. The X property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..1646a3ded35 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPreciseRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1a140c561f5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.error_type; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::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 Json 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 new file mode 100644 index 00000000000..16692322e9a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypeRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c2dbed5b907 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.even; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..e222d5d5db7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a8323edf0e1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.exact; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("text2", (n) -> { this.setText2(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text1 property value. The text1 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getText1() { + return this.backingStore.get("text1"); + } + /** + * Gets the text2 property value. The text2 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..526834f5157 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..07450814d7b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.exp; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..7bbf01755ff --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f1c42f96a17 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.expon_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("lambda", (n) -> { this.setLambda(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the lambda property value. The lambda property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLambda() { + return this.backingStore.get("lambda"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..132de1de16d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2876ac461e5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCumulative() { + return this.backingStore.get("cumulative"); + } + /** + * Gets the degFreedom1 property value. The degFreedom1 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getDegFreedom1() { + return this.backingStore.get("degFreedom1"); + } + /** + * Gets the degFreedom2 property value. The degFreedom2 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..1601bba01b8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..67d24d00b09 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist_rt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getDegFreedom1() { + return this.backingStore.get("degFreedom1"); + } + /** + * Gets the degFreedom2 property value. The degFreedom2 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..0cefe05beda --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d8fe24bd8c1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getDegFreedom1() { + return this.backingStore.get("degFreedom1"); + } + /** + * Gets the degFreedom2 property value. The degFreedom2 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the probability property value. The probability property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..5cf53d71d75 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2a0b989486b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv_rt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getDegFreedom1() { + return this.backingStore.get("degFreedom1"); + } + /** + * Gets the degFreedom2 property value. The degFreedom2 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the probability property value. The probability property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..73a26b7006e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e3d6cc3258e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fact; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..16a4dd24420 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b938659991b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoublePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.factdouble; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..b6d26768289 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoubleRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..872a9732a27 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/falseescaped/FalseRequestBuilder.java @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..0a66d84434f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.find; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("withinText", (n) -> { this.setWithinText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the findText property value. The findText property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFindText() { + return this.backingStore.get("findText"); + } + /** + * Gets the startNum property value. The startNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getStartNum() { + return this.backingStore.get("startNum"); + } + /** + * Gets the withinText property value. The withinText property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..53572e2b0f6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7d9f765202b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.findb; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("withinText", (n) -> { this.setWithinText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the findText property value. The findText property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFindText() { + return this.backingStore.get("findText"); + } + /** + * Gets the startNum property value. The startNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getStartNum() { + return this.backingStore.get("startNum"); + } + /** + * Gets the withinText property value. The withinText property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..ffdd5172b44 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a1b2f861230 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisher; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..70d56f14c49 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..fcdc00ccda3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisherinv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the y property value. The y property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..ae1d8e8540b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..599c1247f04 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fixed; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("noCommas", (n) -> { this.setNoCommas(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the noCommas property value. The noCommas property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNoCommas() { + return this.backingStore.get("noCommas"); + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..203300935e3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2280295ee33 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_math; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the mode property value. The mode property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMode() { + return this.backingStore.get("mode"); + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the significance property value. The significance property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..8a505e85fb0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7fc83117537 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPrecisePostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_precise; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the significance property value. The significance property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..c899d23c984 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPreciseRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..22934607cd7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the nper property value. The nper property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNper() { + return this.backingStore.get("nper"); + } + /** + * Gets the pmt property value. The pmt property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPmt() { + return this.backingStore.get("pmt"); + } + /** + * Gets the pv property value. The pv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPv() { + return this.backingStore.get("pv"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the type property value. The type property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..01003c20f9c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..126a25abce5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvschedulePostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.fvschedule; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("schedule", (n) -> { this.setSchedule(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the principal property value. The principal property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPrincipal() { + return this.backingStore.get("principal"); + } + /** + * Gets the schedule property value. The schedule property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..2eac89f1608 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvscheduleRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..4ee8478bf4b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..ef07591f4e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d6626b07c92 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json} + */ + @jakarta.annotation.Nullable + public Json getBeta() { + return this.backingStore.get("beta"); + } + /** + * Gets the cumulative property value. The cumulative property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..4377f5cd5e1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c75e0538407 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_inv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the probability property value. The probability property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..0db1361e9a4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8426e401ed1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..375cb79ca46 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..81b0c91c22d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPrecisePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln_precise; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..2aa63f2af3c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPreciseRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..99282560c6e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gauss; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..d2ff677038b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..292b79a175b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gcd; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..54f8e0d9475 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..948aed61d42 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.geomean; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..c42c7b7e708 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..39481d64c85 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.gestep; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("step", (n) -> { this.setStep(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the step property value. The step property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..b6a004d393e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b40e94fd838 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.harmean; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..114f9e612a3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..887ee40c939 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2bin; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the places property value. The places property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..9d8d7ad1b01 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d2c6492fe1d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2dec; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..27f01ed5487 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2ea0b29f61f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2oct; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the places property value. The places property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..88204a326e9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..ec2de124b6a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hlookup; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rangeLookup", (n) -> { this.setRangeLookup(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rowIndexNum", (n) -> { this.setRowIndexNum(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("tableArray", (n) -> { this.setTableArray(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the lookupValue property value. The lookupValue property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLookupValue() { + return this.backingStore.get("lookupValue"); + } + /** + * Gets the rangeLookup property value. The rangeLookup property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRangeLookup() { + return this.backingStore.get("rangeLookup"); + } + /** + * Gets the rowIndexNum property value. The rowIndexNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRowIndexNum() { + return this.backingStore.get("rowIndexNum"); + } + /** + * Gets the tableArray property value. The tableArray property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..57ccfec90b3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5491f4ce416 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hour; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the serialNumber property value. The serialNumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..2204ecf46d1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e1405a1b474 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hyperlink; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("linkLocation", (n) -> { this.setLinkLocation(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the friendlyName property value. The friendlyName property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFriendlyName() { + return this.backingStore.get("friendlyName"); + } + /** + * Gets the linkLocation property value. The linkLocation property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..1305cfa4739 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b7847ad4e39 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.hypgeom_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numberPop", (n) -> { this.setNumberPop(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numberSample", (n) -> { this.setNumberSample(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("populationS", (n) -> { this.setPopulationS(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("sampleS", (n) -> { this.setSampleS(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the numberPop property value. The numberPop property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumberPop() { + return this.backingStore.get("numberPop"); + } + /** + * Gets the numberSample property value. The numberSample property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumberSample() { + return this.backingStore.get("numberSample"); + } + /** + * Gets the populationS property value. The populationS property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPopulationS() { + return this.backingStore.get("populationS"); + } + /** + * Gets the sampleS property value. The sampleS property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..012f29a2aa2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d0299b115fc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ifescaped; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("valueIfFalse", (n) -> { this.setValueIfFalse(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("valueIfTrue", (n) -> { this.setValueIfTrue(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the logicalTest property value. The logicalTest property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLogicalTest() { + return this.backingStore.get("logicalTest"); + } + /** + * Gets the valueIfFalse property value. The valueIfFalse property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getValueIfFalse() { + return this.backingStore.get("valueIfFalse"); + } + /** + * Gets the valueIfTrue property value. The valueIfTrue property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..fbb726a9ad7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8e495df368f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imabs; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..59b58f53e20 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f9ebabd07ff --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imaginary; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..8b338cea8e9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..0a9bc091840 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imargument; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..0d8d02675ff --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..79cd0384f93 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugatePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imconjugate; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..de78709202d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugateRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1863c52119a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcos; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..a048c5c7564 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7e0927c780b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcosh; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..67fe1a05e17 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..ba44f9b6dd8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcot; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..d1999746290 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f69b285bd73 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..248d3a9f998 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..dbecdd56484 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsch; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..d2f26174ef2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b7130c9f9c0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imdiv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("inumber2", (n) -> { this.setInumber2(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber1 property value. The inumber1 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getInumber1() { + return this.backingStore.get("inumber1"); + } + /** + * Gets the inumber2 property value. The inumber2 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..9ef72308f23 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..30155b7a717 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imexp; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..7a3a4fc34d5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7f3d4f5a09e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imln; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..25dd4ecb117 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..79f8493fcb1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10PostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog10; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..f10c5690a0a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10RequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8dc628ab7be --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2PostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog2; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..4bb51fd5e63 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2RequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..654deb3454b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.impower; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getInumber() { + return this.backingStore.get("inumber"); + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..9ecefbfc88e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2933e38264d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.improduct; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..2bfe153a589 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d87e56efc7c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imreal; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..dd120e4e5c1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..948130c56d0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsec; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..2005c18a306 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7962498fa7f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsech; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..5cf3bcac566 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b32a96bb90a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsin; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..14599cc9ab2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..6532e53ef27 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsinh; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..3baaa3d4c7a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c6a59b77add --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsqrt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..fa6984630d8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8c06c3e2f62 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsub; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("inumber2", (n) -> { this.setInumber2(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber1 property value. The inumber1 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getInumber1() { + return this.backingStore.get("inumber1"); + } + /** + * Gets the inumber2 property value. The inumber2 property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..1eef0c4d757 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..bbab7417bbe --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsum; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..f70429be5a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..331b2c0bed6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.imtan; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the inumber property value. The inumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..0feb76c55f1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..bfcd0ef0465 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.intescaped; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..98d539887c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c29e2244e73 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRatePostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.intrate; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("investment", (n) -> { this.setInvestment(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the investment property value. The investment property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getInvestment() { + return this.backingStore.get("investment"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the redemption property value. The redemption property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRedemption() { + return this.backingStore.get("redemption"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..bbdab2557a4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRateRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8c1aeaa874e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtPostRequestBody.java @@ -0,0 +1,193 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ipmt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the fv property value. The fv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFv() { + return this.backingStore.get("fv"); + } + /** + * Gets the nper property value. The nper property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNper() { + return this.backingStore.get("nper"); + } + /** + * Gets the per property value. The per property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPer() { + return this.backingStore.get("per"); + } + /** + * Gets the pv property value. The pv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPv() { + return this.backingStore.get("pv"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the type property value. The type property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..b8f323ad3ba --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8747478e6af --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.irr; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the guess property value. The guess property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getGuess() { + return this.backingStore.get("guess"); + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..fd4dba96904 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a1a09c066b1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserr; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..bdb555cdce0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..911b1f65f7d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserror; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..2140d334147 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..41f28c90f64 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iseven; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..cccb892755c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..3791a0774f8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isformula; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the reference property value. The reference property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..250a08dd854 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e63794d57d0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.islogical; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..8460bc5c03d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..9b5911f84dd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNAPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isna; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..dd7cb95f128 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNARequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7359957a9e5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnontext; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..07d41d4d274 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c47f51264d7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnumber; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..da25e0d72e1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..bd6afa5582d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.iso_ceiling; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the significance property value. The significance property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..11419500c63 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..3dc80b41322 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isodd; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..6febe3d4bfa --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..9a595b8aced --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isoweeknum; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::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 Json 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 new file mode 100644 index 00000000000..24cdaa36eab --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..52749b1d550 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ispmt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the nper property value. The nper property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNper() { + return this.backingStore.get("nper"); + } + /** + * Gets the per property value. The per property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPer() { + return this.backingStore.get("per"); + } + /** + * Gets the pv property value. The pv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPv() { + return this.backingStore.get("pv"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..333290de81b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7ecf76acbb6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.isref; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..5ed8527ee10 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..88bb9213fbd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.istext; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..46fc5583a60 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..779508866a6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.kurt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..6a4583f1d92 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2e8138ade2d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargePostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.large; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the k property value. The k property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..c9571d14889 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargeRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c2e4a1ba280 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lcm; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..970f023b6bc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..93d31b85122 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.left; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the numChars property value. The numChars property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumChars() { + return this.backingStore.get("numChars"); + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..3c39a4b597e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..fa576bbbfb0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.leftb; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the numBytes property value. The numBytes property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumBytes() { + return this.backingStore.get("numBytes"); + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..0b47032fe10 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5500cbfbc8b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.len; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..11898c70bc1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..76bfd14752a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lenb; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..2a0cf59ccd3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..6d9ad1f203c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ln; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..25e9b9c6206 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..334eb9e397a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.log; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..6d6f2ab70b3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..dd3ee420dd7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10PostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.log10; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..333a3ba012a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10RequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5a267da4087 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the mean property value. The mean property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMean() { + return this.backingStore.get("mean"); + } + /** + * Gets the standardDev property value. The standardDev property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getStandardDev() { + return this.backingStore.get("standardDev"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..5deb870680f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..90071f40044 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_inv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the mean property value. The mean property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMean() { + return this.backingStore.get("mean"); + } + /** + * Gets the probability property value. The probability property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getProbability() { + return this.backingStore.get("probability"); + } + /** + * Gets the standardDev property value. The standardDev property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..323f022b9c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..648ad476478 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lookup; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("lookupVector", (n) -> { this.setLookupVector(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("resultVector", (n) -> { this.setResultVector(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the lookupValue property value. The lookupValue property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLookupValue() { + return this.backingStore.get("lookupValue"); + } + /** + * Gets the lookupVector property value. The lookupVector property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLookupVector() { + return this.backingStore.get("lookupVector"); + } + /** + * Gets the resultVector property value. The resultVector property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..9410682324d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..eb33f69e1b9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.lower; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..6dd89a00578 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a91f6f0546d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.match; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("matchType", (n) -> { this.setMatchType(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the lookupArray property value. The lookupArray property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLookupArray() { + return this.backingStore.get("lookupArray"); + } + /** + * Gets the lookupValue property value. The lookupValue property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLookupValue() { + return this.backingStore.get("lookupValue"); + } + /** + * Gets the matchType property value. The matchType property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..587d170dae3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b010ad4ed26 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.max; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..a1a52bfddcf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..4a329275d30 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxAPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.maxa; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..083afd2e321 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxARequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c1f78e95a88 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationPostRequestBody.java @@ -0,0 +1,193 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mduration; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getBasis() { + return this.backingStore.get("basis"); + } + /** + * Gets the coupon property value. The coupon property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("coupon", (n) -> { this.setCoupon(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSettlement() { + return this.backingStore.get("settlement"); + } + /** + * Gets the yld property value. The yld property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..ea8bac749b4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d66c33c0d0d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.median; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..816493fcd33 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..079fd1ad53f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mid; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the numChars property value. The numChars property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumChars() { + return this.backingStore.get("numChars"); + } + /** + * Gets the startNum property value. The startNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getStartNum() { + return this.backingStore.get("startNum"); + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..82c58129c42 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8dfa56cdb9e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.midb; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the numBytes property value. The numBytes property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumBytes() { + return this.backingStore.get("numBytes"); + } + /** + * Gets the startNum property value. The startNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getStartNum() { + return this.backingStore.get("startNum"); + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..c1ed95d7999 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..40846778a7b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.min; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..0d9e587fdc6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..14d60e7ff49 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinAPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mina; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..32d850685bf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinARequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b0f03b5c348 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinutePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.minute; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the serialNumber property value. The serialNumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..6dbb982f66a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinuteRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..10880bf1c09 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mirr; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("reinvestRate", (n) -> { this.setReinvestRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the financeRate property value. The financeRate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFinanceRate() { + return this.backingStore.get("financeRate"); + } + /** + * Gets the reinvestRate property value. The reinvestRate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getReinvestRate() { + return this.backingStore.get("reinvestRate"); + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..0516e6bdd29 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..98400e3e9cd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mod; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..0ba6135ed39 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c99439afec3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.month; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the serialNumber property value. The serialNumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..7117cbad907 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b0a1f9d3f5f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.mround; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the multiple property value. The multiple property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMultiple() { + return this.backingStore.get("multiple"); + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..3501c050332 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..ba748ffeb26 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.multinomial; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..d628eb1f725 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f89cd1ed36b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.n; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..261c9cb7345 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..0abcade2dea --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/na/NaRequestBuilder.java @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..592b6f97833 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.negbinom_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numberF", (n) -> { this.setNumberF(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numberS", (n) -> { this.setNumberS(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the numberF property value. The numberF property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumberF() { + return this.backingStore.get("numberF"); + } + /** + * Gets the numberS property value. The numberS property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumberS() { + return this.backingStore.get("numberS"); + } + /** + * Gets the probabilityS property value. The probabilityS property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..d732ee36aa2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..299c075da0d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the holidays property value. The holidays property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getHolidays() { + return this.backingStore.get("holidays"); + } + /** + * Gets the startDate property value. The startDate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..7a125bd30f8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..9f5641cde6c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays_intl; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("weekend", (n) -> { this.setWeekend(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the holidays property value. The holidays property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getHolidays() { + return this.backingStore.get("holidays"); + } + /** + * Gets the startDate property value. The startDate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getStartDate() { + return this.backingStore.get("startDate"); + } + /** + * Gets the weekend property value. The weekend property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..133dab4cdf5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5ba13936cae --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.nominal; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("npery", (n) -> { this.setNpery(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the npery property value. The npery property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..bbd8868d375 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..4b0d981e434 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the mean property value. The mean property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMean() { + return this.backingStore.get("mean"); + } + /** + * Gets the standardDev property value. The standardDev property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getStandardDev() { + return this.backingStore.get("standardDev"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..f7fb0ffb86c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..fc55d2fae41 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_inv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the mean property value. The mean property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMean() { + return this.backingStore.get("mean"); + } + /** + * Gets the probability property value. The probability property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getProbability() { + return this.backingStore.get("probability"); + } + /** + * Gets the standardDev property value. The standardDev property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..3db802060da --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..ed49a4676ab --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("z", (n) -> { this.setZ(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the z property value. The z property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..aba7b8a96cb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c1aa0f74ac9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_inv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the probability property value. The probability property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..d25eb2f52db --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..6a110467c12 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.not; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the logical property value. The logical property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..e74a9dbd19c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b7dbf2d0e2f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/now/NowRequestBuilder.java @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..ba5ee23e480 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.nper; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the fv property value. The fv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFv() { + return this.backingStore.get("fv"); + } + /** + * Gets the pmt property value. The pmt property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPmt() { + return this.backingStore.get("pmt"); + } + /** + * Gets the pv property value. The pv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPv() { + return this.backingStore.get("pv"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the type property value. The type property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..ae9753f3c2e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b5d1c1f5ca5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.npv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..0ce22b4d305 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..3d5b0e335bc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValuePostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.numbervalue; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("groupSeparator", (n) -> { this.setGroupSeparator(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the groupSeparator property value. The groupSeparator property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getGroupSeparator() { + return this.backingStore.get("groupSeparator"); + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..af92fd7bf2d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValueRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..fe019608147 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2bin; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the places property value. The places property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..9815ef33b98 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..9d796cabb1b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2dec; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..ce3197d091d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..6cc595a5ab6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2hex; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the places property value. The places property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..8fc98db6ecf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..578c66f5e2f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.odd; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..71bea8b1e1f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a331c1e5b2c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPricePostRequestBody.java @@ -0,0 +1,244 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfprice; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("firstCoupon", (n) -> { this.setFirstCoupon(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the firstCoupon property value. The firstCoupon property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFirstCoupon() { + return this.backingStore.get("firstCoupon"); + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the issue property value. The issue property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getIssue() { + return this.backingStore.get("issue"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the redemption property value. The redemption property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRedemption() { + return this.backingStore.get("redemption"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSettlement() { + return this.backingStore.get("settlement"); + } + /** + * Gets the yld property value. The yld property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..8534ee88154 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPriceRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..33c58933e9e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldPostRequestBody.java @@ -0,0 +1,244 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfyield; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("firstCoupon", (n) -> { this.setFirstCoupon(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the firstCoupon property value. The firstCoupon property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFirstCoupon() { + return this.backingStore.get("firstCoupon"); + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the issue property value. The issue property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getIssue() { + return this.backingStore.get("issue"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the pr property value. The pr property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPr() { + return this.backingStore.get("pr"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the redemption property value. The redemption property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRedemption() { + return this.backingStore.get("redemption"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..2e46c7ca0bc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..0fef95fd11f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPricePostRequestBody.java @@ -0,0 +1,227 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlprice; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("lastInterest", (n) -> { this.setLastInterest(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the lastInterest property value. The lastInterest property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLastInterest() { + return this.backingStore.get("lastInterest"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the redemption property value. The redemption property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRedemption() { + return this.backingStore.get("redemption"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSettlement() { + return this.backingStore.get("settlement"); + } + /** + * Gets the yld property value. The yld property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..4107b1e58b6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPriceRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..67839c24fe8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldPostRequestBody.java @@ -0,0 +1,227 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlyield; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("lastInterest", (n) -> { this.setLastInterest(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the lastInterest property value. The lastInterest property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLastInterest() { + return this.backingStore.get("lastInterest"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the pr property value. The pr property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPr() { + return this.backingStore.get("pr"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the redemption property value. The redemption property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRedemption() { + return this.backingStore.get("redemption"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..aabcc80369a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..033ee70f0cf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.or; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..50bc397535a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2e7d53bacb9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pduration; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the fv property value. The fv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFv() { + return this.backingStore.get("fv"); + } + /** + * Gets the pv property value. The pv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPv() { + return this.backingStore.get("pv"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..5d60e467e78 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..33c63edbb46 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_exc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the k property value. The k property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..c6269b42157 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..4ba7b433e71 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_inc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the k property value. The k property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..0ca005e6587 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a44411c7843 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_exc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the significance property value. The significance property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSignificance() { + return this.backingStore.get("significance"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..957f37995f1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1cdd176c3c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_inc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the significance property value. The significance property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSignificance() { + return this.backingStore.get("significance"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..b09099ad93b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..9dd0f3d8686 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.permut; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the numberChosen property value. The numberChosen property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..0eb63ae5337 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e8c2919449a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.permutationa; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the numberChosen property value. The numberChosen property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..a6bb6d074a2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..96032eb765b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.phi; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..f34456da59b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..6be359b35db --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pi/PiRequestBuilder.java @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..85d1d5ce04a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pmt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the fv property value. The fv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFv() { + return this.backingStore.get("fv"); + } + /** + * Gets the nper property value. The nper property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNper() { + return this.backingStore.get("nper"); + } + /** + * Gets the pv property value. The pv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPv() { + return this.backingStore.get("pv"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the type property value. The type property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..709364c8d18 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c3a2d8f7592 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.poisson_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the mean property value. The mean property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMean() { + return this.backingStore.get("mean"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..521468eec91 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1ce3b540800 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.power; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("power", (n) -> { this.setPower(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the power property value. The power property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..3819bcb5963 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..fa56a1639cc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtPostRequestBody.java @@ -0,0 +1,193 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.ppmt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the fv property value. The fv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFv() { + return this.backingStore.get("fv"); + } + /** + * Gets the nper property value. The nper property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNper() { + return this.backingStore.get("nper"); + } + /** + * Gets the per property value. The per property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPer() { + return this.backingStore.get("per"); + } + /** + * Gets the pv property value. The pv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPv() { + return this.backingStore.get("pv"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the type property value. The type property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..ec48eab5e94 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e52d7cb2578 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PricePostRequestBody.java @@ -0,0 +1,210 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.price; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the redemption property value. The redemption property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRedemption() { + return this.backingStore.get("redemption"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSettlement() { + return this.backingStore.get("settlement"); + } + /** + * Gets the yld property value. The yld property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..53cb1706850 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PriceRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f745184af23 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricedisc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getBasis() { + return this.backingStore.get("basis"); + } + /** + * Gets the discount property value. The discount property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the redemption property value. The redemption property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRedemption() { + return this.backingStore.get("redemption"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..b3fb3c33161 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..68f83eecf55 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatPostRequestBody.java @@ -0,0 +1,193 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricemat; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the issue property value. The issue property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getIssue() { + return this.backingStore.get("issue"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSettlement() { + return this.backingStore.get("settlement"); + } + /** + * Gets the yld property value. The yld property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..e78d5f5d1dd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a3a987c8e01 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.product; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..b32f85b718e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..da6b59f6946 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.proper; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..a35b1ab47bb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5b3440885da --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.pv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the fv property value. The fv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFv() { + return this.backingStore.get("fv"); + } + /** + * Gets the nper property value. The nper property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNper() { + return this.backingStore.get("nper"); + } + /** + * Gets the pmt property value. The pmt property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPmt() { + return this.backingStore.get("pmt"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the type property value. The type property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..cf7b940bcb6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5c201e39929 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_exc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("quart", (n) -> { this.setQuart(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the quart property value. The quart property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..f66321c7ee2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5dc8b933720 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_inc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("quart", (n) -> { this.setQuart(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the quart property value. The quart property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..e2d30b311e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d008aaba58e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.quotient; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numerator", (n) -> { this.setNumerator(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the numerator property value. The numerator property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..c9ed6d8de87 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1045572e8a0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.radians; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::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 Json 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 new file mode 100644 index 00000000000..a3049a01299 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f905b56eb2d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rand/RandRequestBuilder.java @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..fc9a025695c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.randbetween; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("top", (n) -> { this.setTop(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the top property value. The top property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..98de67f2bfa --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..18353fc1e04 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_avg; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("order", (n) -> { this.setOrder(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("ref", (n) -> { this.setRef(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the order property value. The order property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getOrder() { + return this.backingStore.get("order"); + } + /** + * Gets the ref property value. The ref property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..cfb12f084d0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..454788fac8d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_eq; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("order", (n) -> { this.setOrder(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("ref", (n) -> { this.setRef(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the order property value. The order property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getOrder() { + return this.backingStore.get("order"); + } + /** + * Gets the ref property value. The ref property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..02701191953 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..aa109922aec --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RatePostRequestBody.java @@ -0,0 +1,193 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rate; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("guess", (n) -> { this.setGuess(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the fv property value. The fv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFv() { + return this.backingStore.get("fv"); + } + /** + * Gets the guess property value. The guess property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getGuess() { + return this.backingStore.get("guess"); + } + /** + * Gets the nper property value. The nper property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNper() { + return this.backingStore.get("nper"); + } + /** + * Gets the pmt property value. The pmt property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPmt() { + return this.backingStore.get("pmt"); + } + /** + * Gets the pv property value. The pv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPv() { + return this.backingStore.get("pv"); + } + /** + * Gets the type property value. The type property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..844651b937d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RateRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..fcc8dbdc86e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.received; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getBasis() { + return this.backingStore.get("basis"); + } + /** + * Gets the discount property value. The discount property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("investment", (n) -> { this.setInvestment(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the investment property value. The investment property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getInvestment() { + return this.backingStore.get("investment"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..c1d9d9b16bd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7ce939bad8e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplacePostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.replace; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("oldText", (n) -> { this.setOldText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the newText property value. The newText property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNewText() { + return this.backingStore.get("newText"); + } + /** + * Gets the numChars property value. The numChars property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumChars() { + return this.backingStore.get("numChars"); + } + /** + * Gets the oldText property value. The oldText property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getOldText() { + return this.backingStore.get("oldText"); + } + /** + * Gets the startNum property value. The startNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..baaa9a7b098 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplaceRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..28ea17849da --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.replaceb; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("oldText", (n) -> { this.setOldText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the newText property value. The newText property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNewText() { + return this.backingStore.get("newText"); + } + /** + * Gets the numBytes property value. The numBytes property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumBytes() { + return this.backingStore.get("numBytes"); + } + /** + * Gets the oldText property value. The oldText property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getOldText() { + return this.backingStore.get("oldText"); + } + /** + * Gets the startNum property value. The startNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..3b9dd77a259 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f08ad98391b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rept; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the numberTimes property value. The numberTimes property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumberTimes() { + return this.backingStore.get("numberTimes"); + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..2c6a0715a69 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..291932fd672 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.right; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the numChars property value. The numChars property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumChars() { + return this.backingStore.get("numChars"); + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..aa7dccd9af8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..278af72d7be --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rightb; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the numBytes property value. The numBytes property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumBytes() { + return this.backingStore.get("numBytes"); + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..d192bc3da48 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2307537940b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.roman; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the form property value. The form property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getForm() { + return this.backingStore.get("form"); + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..b8eb5cef074 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e7301159a9d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.round; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the numDigits property value. The numDigits property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..fc46e7358f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b8f8394eb9b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rounddown; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the numDigits property value. The numDigits property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..65ce9302f23 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..3ef8970fd52 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.roundup; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the numDigits property value. The numDigits property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..278bc609867 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f6ddc783363 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rows; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::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 Json 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 new file mode 100644 index 00000000000..7e2cce4c368 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..706b411f6a5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.rri; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the fv property value. The fv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFv() { + return this.backingStore.get("fv"); + } + /** + * Gets the nper property value. The nper property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNper() { + return this.backingStore.get("nper"); + } + /** + * Gets the pv property value. The pv property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..9443f146dc8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..bb5cccbc01a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sec; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..c634eab00dc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..eab7c1f89d7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sech; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..7e2eef6f528 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1e6592b28b4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.second; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the serialNumber property value. The serialNumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..e0d2d95b28a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..70244e2250e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.seriessum; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("m", (n) -> { this.setM(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the m property value. The m property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getM() { + return this.backingStore.get("m"); + } + /** + * Gets the n property value. The n property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getN() { + return this.backingStore.get("n"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..a690e6b78aa --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e3eadc0097a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheet; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..50d00c8f749 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..13fdda550e5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheets; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the reference property value. The reference property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..4554924310b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..ab4d67031a0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sign; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..6dd81ca033f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..3151c5db7bd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sin; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..1ce876da9ee --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..bda6248eefb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sinh; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..612ca509c0e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..eef3172e498 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..832f1273427 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..00a9e28fd41 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew_p; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..0fcc3c73718 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..4f8549c8417 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sln; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the life property value. The life property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLife() { + return this.backingStore.get("life"); + } + /** + * Gets the salvage property value. The salvage property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..fad9004af43 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..1809a328d14 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.small; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the k property value. The k property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..2ea2dfa4f10 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..db9e8e79336 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..f59366cb6d6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..ab026658cbd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrtpi; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..ae8f3259d69 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..383425e10b2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizePostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.standardize; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the mean property value. The mean property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMean() { + return this.backingStore.get("mean"); + } + /** + * Gets the standardDev property value. The standardDev property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getStandardDev() { + return this.backingStore.get("standardDev"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..1d73a0cedab --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizeRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f51f1df935a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_p; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..028cd15532e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..940ca8a1a7c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_s; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..95cbc7ede1a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7ff8ba1e2a8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevAPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdeva; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..2f099dafda3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevARequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5173a72c3ab --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPAPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdevpa; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..15468afa97b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPARequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d5aee5aafcf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstitutePostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.substitute; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("newText", (n) -> { this.setNewText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("oldText", (n) -> { this.setOldText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the instanceNum property value. The instanceNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getInstanceNum() { + return this.backingStore.get("instanceNum"); + } + /** + * Gets the newText property value. The newText property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNewText() { + return this.backingStore.get("newText"); + } + /** + * Gets the oldText property value. The oldText property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getOldText() { + return this.backingStore.get("oldText"); + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..76890771e1d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstituteRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..39a6b9d04a0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.subtotal; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the functionNum property value. The functionNum property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFunctionNum() { + return this.backingStore.get("functionNum"); + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..bf2a9396b10 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..4026e6516da --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sum; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..8679a91f154 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..491a9659242 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumif; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("sumRange", (n) -> { this.setSumRange(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the range property value. The range property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRange() { + return this.backingStore.get("range"); + } + /** + * Gets the sumRange property value. The sumRange property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..56bbab5a58c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5c0975ca5ac --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumifs; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the sumRange property value. The sumRange property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSumRange() { + return this.backingStore.get("sumRange"); + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..c22bc793d79 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..54d3889c320 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumsq; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..4e0b083e3d6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..64ed7071a7e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.syd; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the life property value. The life property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLife() { + return this.backingStore.get("life"); + } + /** + * Gets the per property value. The per property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPer() { + return this.backingStore.get("per"); + } + /** + * Gets the salvage property value. The salvage property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..c93017362c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..47491d3f6d6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..b7e5ef3ed6f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..51c1ba6024d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCumulative() { + return this.backingStore.get("cumulative"); + } + /** + * Gets the degFreedom property value. The degFreedom property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..a4e242a1366 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a40b649550a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_2t; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..18955c4d174 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..2b9e747cc0b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_rt; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..3665c529d89 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8623ce9a4ef --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the probability property value. The probability property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..74ccba1fc27 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c2eacf3cd65 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv_2t; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the probability property value. The probability property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..cd80c3cb7cf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..54c93b35805 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tan; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..a11138b4c8c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5e8d1adb3ab --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tanh; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..17d737c2114 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a3db25eb2e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbilleq; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..b43dfd297c9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e429efe0031 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPricePostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillprice; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..1f6f625e6ec --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPriceRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..e4936f0e606 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillyield; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the pr property value. The pr property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPr() { + return this.backingStore.get("pr"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..b12ec145a47 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5aa2bf3d20b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.text; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the formatText property value. The formatText property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFormatText() { + return this.backingStore.get("formatText"); + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..e22367e7809 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..68521a9fd85 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimePostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.time; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("minute", (n) -> { this.setMinute(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("second", (n) -> { this.setSecond(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the hour property value. The hour property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getHour() { + return this.backingStore.get("hour"); + } + /** + * Gets the minute property value. The minute property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMinute() { + return this.backingStore.get("minute"); + } + /** + * Gets the second property value. The second property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..84b51054e23 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimeRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8326abd64e7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevaluePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.timevalue; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the timeText property value. The timeText property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..09368669bcc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevalueRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8e102363b94 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/today/TodayRequestBuilder.java @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..9eb4ae3f6a3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trim; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..de854ad3003 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d1789ad1db5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trimmean; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("percent", (n) -> { this.setPercent(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the percent property value. The percent property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..493511fccae --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..98d2f52ffb5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trueescaped/TrueRequestBuilder.java @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..cb46c240011 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.trunc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNumber() { + return this.backingStore.get("number"); + } + /** + * Gets the numDigits property value. The numDigits property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..c8313304fdb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..4b0d4af4d61 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.type; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..2f0b4729f3e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypeRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..244cd75be30 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.unichar; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..8ab2e89e437 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5f15bb42312 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.unicode; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..ac0dc8853cc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodeRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..b6df6c451de --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.upper; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..d61dd5bac0e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..28c2a898158 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.usdollar; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the number property value. The number property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..16859375b8d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c2fcbb6ee0c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValuePostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.value; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the text property value. The text property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..3f630ebcb2e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValueRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d683f4533dd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_p; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..a8018874bf4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..8a5fbeb6362 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_s; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..51b7f3023f8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..3d5949fdb6c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarAPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.vara; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..f39ca3e9fe0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarARequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..72f26bc6155 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPAPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.varpa; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..6da5ee3c40b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPARequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..cd99c65a803 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbPostRequestBody.java @@ -0,0 +1,210 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.vdb; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getCost() { + return this.backingStore.get("cost"); + } + /** + * Gets the endPeriod property value. The endPeriod property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getEndPeriod() { + return this.backingStore.get("endPeriod"); + } + /** + * Gets the factor property value. The factor property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("endPeriod", (n) -> { this.setEndPeriod(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("factor", (n) -> { this.setFactor(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("noSwitch", (n) -> { this.setNoSwitch(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startPeriod", (n) -> { this.setStartPeriod(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the life property value. The life property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLife() { + return this.backingStore.get("life"); + } + /** + * Gets the noSwitch property value. The noSwitch property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getNoSwitch() { + return this.backingStore.get("noSwitch"); + } + /** + * Gets the salvage property value. The salvage property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSalvage() { + return this.backingStore.get("salvage"); + } + /** + * Gets the startPeriod property value. The startPeriod property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..cfce32949c2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..5f2ac4f7a9f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.vlookup; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rangeLookup", (n) -> { this.setRangeLookup(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("tableArray", (n) -> { this.setTableArray(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the lookupValue property value. The lookupValue property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getLookupValue() { + return this.backingStore.get("lookupValue"); + } + /** + * Gets the rangeLookup property value. The rangeLookup property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRangeLookup() { + return this.backingStore.get("rangeLookup"); + } + /** + * Gets the tableArray property value. The tableArray property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..08c14070db6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..6aee38c0347 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.weekday; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the returnType property value. The returnType property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getReturnType() { + return this.backingStore.get("returnType"); + } + /** + * Gets the serialNumber property value. The serialNumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..8acfbff1a7c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..59d8a9bb243 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.weeknum; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the returnType property value. The returnType property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getReturnType() { + return this.backingStore.get("returnType"); + } + /** + * Gets the serialNumber property value. The serialNumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..47c4a610ea4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..82dfb505ea4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.weibull_dist; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json} + */ + @jakarta.annotation.Nullable + public Json getBeta() { + return this.backingStore.get("beta"); + } + /** + * Gets the cumulative property value. The cumulative property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..19592abd293 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..64d6e2f08ef --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the holidays property value. The holidays property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getHolidays() { + return this.backingStore.get("holidays"); + } + /** + * Gets the startDate property value. The startDate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..922cc971622 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..062ae8fe30d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlPostRequestBody.java @@ -0,0 +1,159 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday_intl; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("weekend", (n) -> { this.setWeekend(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the holidays property value. The holidays property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getHolidays() { + return this.backingStore.get("holidays"); + } + /** + * Gets the startDate property value. The startDate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getStartDate() { + return this.backingStore.get("startDate"); + } + /** + * Gets the weekend property value. The weekend property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..9b64a1cd043 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..658d82bee81 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.xirr; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("guess", (n) -> { this.setGuess(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the guess property value. The guess property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getGuess() { + return this.backingStore.get("guess"); + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..bfe9a01b458 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..7821f3ae00b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.xnpv; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..7ef3274ba65 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..c6a78892908 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.xor; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..f9f69169326 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..a22bffb3215 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.year; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the serialNumber property value. The serialNumber property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..d17c98fe254 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..6502e29c4a6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yearfrac; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json getBasis() { + return this.backingStore.get("basis"); + } + /** + * Gets the endDate property value. The endDate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the startDate property value. The startDate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..dccbaa01dab --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..d7760cece08 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldPostRequestBody.java @@ -0,0 +1,210 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yield; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the frequency property value. The frequency property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getFrequency() { + return this.backingStore.get("frequency"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the pr property value. The pr property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPr() { + return this.backingStore.get("pr"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the redemption property value. The redemption property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRedemption() { + return this.backingStore.get("redemption"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..f836eb84fc8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..736b5c409f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscPostRequestBody.java @@ -0,0 +1,176 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yielddisc; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the pr property value. The pr property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPr() { + return this.backingStore.get("pr"); + } + /** + * Gets the redemption property value. The redemption property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRedemption() { + return this.backingStore.get("redemption"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..dbcfb4aa57d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..fa31f1f14e5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatPostRequestBody.java @@ -0,0 +1,193 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.yieldmat; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the issue property value. The issue property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getIssue() { + return this.backingStore.get("issue"); + } + /** + * Gets the maturity property value. The maturity property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getMaturity() { + return this.backingStore.get("maturity"); + } + /** + * Gets the pr property value. The pr property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getPr() { + return this.backingStore.get("pr"); + } + /** + * Gets the rate property value. The rate property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getRate() { + return this.backingStore.get("rate"); + } + /** + * Gets the settlement property value. The settlement property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..243566131e7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..bbe0ed4b5bd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.functions.z_test; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("sigma", (n) -> { this.setSigma(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the sigma property value. The sigma property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json getSigma() { + return this.backingStore.get("sigma"); + } + /** + * Gets the x property value. The x property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..788e0c9412a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..f3c3e69d542 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/NamesRequestBuilder.java @@ -0,0 +1,261 @@ +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 new file mode 100644 index 00000000000..4233b9dd394 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.names.add; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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; + } + /** + * 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(Json::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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..046588a3df5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..a67fa501532 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalPostRequestBody.java @@ -0,0 +1,141 @@ +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 new file mode 100644 index 00000000000..b3ecb99bdd7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..5a86af74c15 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..820ea2ba429 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/WorkbookNamedItemItemRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..4cb5a750d58 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/range/RangeRequestBuilder.java @@ -0,0 +1,98 @@ +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); + } + /** + * 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 + */ + @jakarta.annotation.Nullable + public WorkbookRange get() { + return get(null); + } + /** + * 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 + */ + @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); + } + /** + * 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 + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public RequestInformation 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 new file mode 100644 index 00000000000..941aa625b94 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..01fd51c9910 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/OperationsRequestBuilder.java @@ -0,0 +1,210 @@ +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{?%24expand,%24orderby,%24search,%24select}", 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{?%24expand,%24orderby,%24search,%24select}", 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 { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * 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; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24search", search); + 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 new file mode 100644 index 00000000000..1ae4d927909 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/item/WorkbookOperationItemRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..4d7451813d1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/refreshsession/RefreshSessionRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..cddea0135e3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/sessioninforesourcewithkey/SessionInfoResourceWithKeyRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..90847a27012 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tablerowoperationresultwithkey/TableRowOperationResultWithKeyRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..472a46c4898 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/TablesRequestBuilder.java @@ -0,0 +1,263 @@ +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 new file mode 100644 index 00000000000..3430f1f3bf2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddPostRequestBody.java @@ -0,0 +1,124 @@ +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 new file mode 100644 index 00000000000..c1696ea00d5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddRequestBuilder.java @@ -0,0 +1,105 @@ +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); + } + /** + * Use this API to create a new Table. + * @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); + } + /** + * Use this API to create a new Table. + * @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); + } + /** + * Use this API to create a new 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); + } + /** + * Use this API to create a new 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/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountGetResponse.java new file mode 100644 index 00000000000..34e6f6727db --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..9ade6ab50db --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountRequestBuilder.java @@ -0,0 +1,95 @@ +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 new file mode 100644 index 00000000000..5056b608210 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/WorkbookTableItemRequestBuilder.java @@ -0,0 +1,327 @@ +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 new file mode 100644 index 00000000000..da2dcd58749 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/clearfilters/ClearFiltersRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..a20a21041f8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java @@ -0,0 +1,263 @@ +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 new file mode 100644 index 00000000000..f1b99488502 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.add; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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>(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(Json::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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..d45b11992e4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..fb1d5c3de4c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..52e8a324baa --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountRequestBuilder.java @@ -0,0 +1,95 @@ +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 new file mode 100644 index 00000000000..a2bd0e78f1e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java @@ -0,0 +1,273 @@ +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 new file mode 100644 index 00000000000..9989a54e3ac --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..b2db2e6d6cf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java @@ -0,0 +1,336 @@ +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 new file mode 100644 index 00000000000..7dcca8fd0af --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java @@ -0,0 +1,108 @@ +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 new file mode 100644 index 00000000000..d480c1746e6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..eb0d3e7a971 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..19b9a344225 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..f9acaea35f5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..ae9b366cfd8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..afacac2cf37 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..aace67f9f3e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..2f927d49438 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java @@ -0,0 +1,141 @@ +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 new file mode 100644 index 00000000000..922a1a31e33 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..4fc9b7c3707 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..3f50f5fb0fb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..fd269368955 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..64ea69c1d6b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..54ae9583b50 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java @@ -0,0 +1,108 @@ +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 new file mode 100644 index 00000000000..e90826415bf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..74b97f9ca94 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..0ba1ae2f758 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..403aeff3a16 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..c11b5f2f610 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..0fa1d8d0810 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyvaluesfilter; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..e240b039bef --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..82f260a1351 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/clear/ClearRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..973a0a59433 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..211fac22475 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/range/RangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..386702c4eec --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..8a0c1dd8f62 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java @@ -0,0 +1,145 @@ +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 new file mode 100644 index 00000000000..e4a25d9c2c5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..abb0b966ba5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..172bdbac754 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..0d600aaefa6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..0c086d055e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..ac7bbd8e2c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/converttorange/ConvertToRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..1a1f76297af --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/databodyrange/DataBodyRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..6219a16e8df --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..f5e19feecf4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/range/RangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..bcafac0c39b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..3503569e0d1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/RowsRequestBuilder.java @@ -0,0 +1,263 @@ +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 new file mode 100644 index 00000000000..0565cf35beb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.add; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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>(2); + deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); + deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(Json::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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..eb83ebf5a69 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..2395a9a1c3b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..064eea95887 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountRequestBuilder.java @@ -0,0 +1,95 @@ +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 new file mode 100644 index 00000000000..2732d4e5e58 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..827a712815d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/range/RangeRequestBuilder.java @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..14f1c357293 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java @@ -0,0 +1,109 @@ +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 new file mode 100644 index 00000000000..54077280d3a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..c054e324bb7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/SortRequestBuilder.java @@ -0,0 +1,255 @@ +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 new file mode 100644 index 00000000000..7af81b66281 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyPostRequestBody.java @@ -0,0 +1,142 @@ +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 new file mode 100644 index 00000000000..8f516cea843 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..1e8d2557048 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/clear/ClearRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..6acf3e1bf1f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/reapply/ReapplyRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..dc838fb7261 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..d009caad876 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/worksheet/WorksheetRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..27b91aa3514 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java @@ -0,0 +1,197 @@ +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 new file mode 100644 index 00000000000..ad8cb86af35 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..ac0e17aa3a5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java @@ -0,0 +1,221 @@ +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 new file mode 100644 index 00000000000..9a2e578b495 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..0f096e87593 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..dbdc97116bc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..6f768dc4f44 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/range/RangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..cfa06b52389 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..c46cb656b62 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java @@ -0,0 +1,221 @@ +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 new file mode 100644 index 00000000000..9b635206d12 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..1ac16e53bb7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..fa180945d7c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..6c5ad7c0487 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/WorksheetsRequestBuilder.java @@ -0,0 +1,252 @@ +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 new file mode 100644 index 00000000000..b1f197b9785 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddPostRequestBody.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..62b831a085e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..b993efd6078 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..7a6c14e76a2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/WorkbookWorksheetItemRequestBuilder.java @@ -0,0 +1,326 @@ +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 new file mode 100644 index 00000000000..91fed2e3bc2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/cellwithrowwithcolumn/CellWithRowWithColumnRequestBuilder.java @@ -0,0 +1,102 @@ +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 new file mode 100644 index 00000000000..7ecdae4e351 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java @@ -0,0 +1,274 @@ +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 new file mode 100644 index 00000000000..b001290c238 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.add; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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>(3); + deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); + deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(Json::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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..66554e18d01 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..dda45b25387 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..9ca81aca079 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountRequestBuilder.java @@ -0,0 +1,95 @@ +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 new file mode 100644 index 00000000000..96c77604188 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java @@ -0,0 +1,357 @@ +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 new file mode 100644 index 00000000000..5176bc894e6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/AxesRequestBuilder.java @@ -0,0 +1,255 @@ +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 new file mode 100644 index 00000000000..ad07f636e0d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/CategoryAxisRequestBuilder.java @@ -0,0 +1,264 @@ +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 new file mode 100644 index 00000000000..9248f3e7d05 --- /dev/null +++ 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 @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..1b40274050c --- /dev/null +++ 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 @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..2bf946bb41e --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..2db4803ec58 --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..215e6a90c1e --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..ed0bd7b80b8 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..cedead6bf6e --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..d8e0424d20c --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..a1c7655a0f0 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..5bcc2b5df29 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..f192e1e5a68 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..02ce8474c18 --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..b082d3a441f --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..0d0481c3bcb --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..bfb7b2fafd1 --- /dev/null +++ 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 @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..4a91e693c7a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/SeriesAxisRequestBuilder.java @@ -0,0 +1,264 @@ +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 new file mode 100644 index 00000000000..e1bed71c598 --- /dev/null +++ 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 @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..823b9184d98 --- /dev/null +++ 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 @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..1eedf28487a --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..fc30cb567e3 --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..ea66601d765 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..ef7cfd434c2 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..a8f4bf71928 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..6e2af3cccbd --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..f91d19dc358 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..84e3468e76a --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..f76e91bfa49 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..e4aeb57cd43 --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..a3b9808fbf8 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..e3ab406fc66 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..41c3d187d87 --- /dev/null +++ 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 @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..63007b90255 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/ValueAxisRequestBuilder.java @@ -0,0 +1,264 @@ +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 new file mode 100644 index 00000000000..d8e8194b1c5 --- /dev/null +++ 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 @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..2e5c473410c --- /dev/null +++ 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 @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..f1fa3226f2a --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..af4920852d2 --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..bc9a6535edf --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..b84e38e4113 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..26540222a84 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..cac24ae442a --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..941d4cbd643 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..217094313b1 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..e2a1583e90d --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..21967ae7a52 --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..7187bcb8251 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..d24d6ffdc03 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..33f60544770 --- /dev/null +++ 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 @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..35394994ffe --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/DataLabelsRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..9cd292108cb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/FormatRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..94d38b212cb --- /dev/null +++ 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 @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..b06c095005e --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..f92ce28f87b --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..2a619438c3c --- /dev/null +++ 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 @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..2cb7e2bd1be --- /dev/null +++ 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 @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..fd371e5dce2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/FormatRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..73b66d8a8fb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/FillRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..6982386eefd --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..623a057c0ed --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..1a243c4be7d --- /dev/null +++ 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 @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..2b9cae98855 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/font/FontRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..d114f35fae2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..4af95723811 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageRequestBuilder.java @@ -0,0 +1,95 @@ +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 new file mode 100644 index 00000000000..1cec7f10f37 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..31f34080bbd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthRequestBuilder.java @@ -0,0 +1,97 @@ +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 new file mode 100644 index 00000000000..6e6aebe9c6c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..86841e6745e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java @@ -0,0 +1,99 @@ +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 new file mode 100644 index 00000000000..dcc5eda850e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..6d2a0a0f271 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java @@ -0,0 +1,101 @@ +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 new file mode 100644 index 00000000000..ecd1e019819 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/LegendRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..7fabaff6a8e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/FormatRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..6db36e662a1 --- /dev/null +++ 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 @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..48550c58a54 --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..1bb1cb4c8be --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..1636475820f --- /dev/null +++ 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 @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..aa18401c23b --- /dev/null +++ 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 @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..74210d81084 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/SeriesRequestBuilder.java @@ -0,0 +1,254 @@ +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 new file mode 100644 index 00000000000..f6144275778 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..d57f2294cd6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountRequestBuilder.java @@ -0,0 +1,95 @@ +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 new file mode 100644 index 00000000000..5fb93c3e1f7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/WorkbookChartSeriesItemRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..d1748d91158 --- /dev/null +++ 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 @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..cbb178e172c --- /dev/null +++ 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 @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..754a08fc5da --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..2d5bc5f1587 --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..f62f57a466d --- /dev/null +++ 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 @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..a9f6f0434ef --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..856c853961f --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..b4fd46db762 --- /dev/null +++ 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 @@ -0,0 +1,254 @@ +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 new file mode 100644 index 00000000000..1717ce02cac --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..4a75aa05061 --- /dev/null +++ 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 @@ -0,0 +1,95 @@ +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 new file mode 100644 index 00000000000..7b2cea68cf7 --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..3c8975d21da --- /dev/null +++ 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 @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..97ca8b6e8d0 --- /dev/null +++ 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 @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..3f632bea543 --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..317671403aa --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..c44e20cbddf --- /dev/null +++ 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 @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..0a18164694f --- /dev/null +++ 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 @@ -0,0 +1,109 @@ +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 new file mode 100644 index 00000000000..379d2800502 --- /dev/null +++ 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 @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..cc1048deab6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/ItemAtWithIndexRequestBuilder.java @@ -0,0 +1,118 @@ +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 new file mode 100644 index 00000000000..8197b0d96b8 --- /dev/null +++ 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 @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..f56d3b2cf02 --- /dev/null +++ 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 @@ -0,0 +1,221 @@ +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 new file mode 100644 index 00000000000..81d2de8bb82 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setdata; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..ce0c3dd26fe --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..4875a039db9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setposition; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startCell", (n) -> { this.setStartCell(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the startCell property value. The startCell property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..7779a8d67f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..60bf6ff5ed9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/TitleRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..5322ac1b034 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..8195982f3f4 --- /dev/null +++ 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 @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..718c9c0a652 --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..39a4deaa18b --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..bb80c3c1204 --- /dev/null +++ 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 @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..33c59b8c175 --- /dev/null +++ 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 @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..17e96560b84 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/worksheet/WorksheetRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..af006683aa1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/ItemAtWithIndexRequestBuilder.java @@ -0,0 +1,229 @@ +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 new file mode 100644 index 00000000000..e1b73e2c29a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/axes/AxesRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..0daf97b6ff0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/datalabels/DataLabelsRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..7ea257d483d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/format/FormatRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..0bcc545a9e4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..0bc750f0124 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageRequestBuilder.java @@ -0,0 +1,95 @@ +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 new file mode 100644 index 00000000000..c30802ee144 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..ac80ce1f4ef --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthRequestBuilder.java @@ -0,0 +1,97 @@ +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 new file mode 100644 index 00000000000..b58410b062c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..11803c1b415 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java @@ -0,0 +1,99 @@ +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 new file mode 100644 index 00000000000..527f9ab41f4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..6d72ed29f05 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java @@ -0,0 +1,101 @@ +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 new file mode 100644 index 00000000000..711c359cb18 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/legend/LegendRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..2958c96307f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/series/SeriesRequestBuilder.java @@ -0,0 +1,221 @@ +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 new file mode 100644 index 00000000000..4549fcd9ba9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setdata; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..25a680789c0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..61e28298975 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setposition; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startCell", (n) -> { this.setStartCell(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the startCell property value. The startCell property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..88e0c95bc69 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..8266d731b56 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/title/TitleRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..d807c2fd367 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/worksheet/WorksheetRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..8d91bce39f3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/ItemWithNameRequestBuilder.java @@ -0,0 +1,227 @@ +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 new file mode 100644 index 00000000000..4f7f7b2348e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/axes/AxesRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..7a856b31323 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/datalabels/DataLabelsRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..0779668f51e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/format/FormatRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..9106e2ea2b0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..560593d6613 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageRequestBuilder.java @@ -0,0 +1,95 @@ +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 new file mode 100644 index 00000000000..f7f05a6d3ce --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..ba37580b026 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthRequestBuilder.java @@ -0,0 +1,97 @@ +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 new file mode 100644 index 00000000000..a4b3d3a18f5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..b4056dbb478 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java @@ -0,0 +1,99 @@ +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 new file mode 100644 index 00000000000..24e6b9cdfda --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..ec1129b36a0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java @@ -0,0 +1,101 @@ +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 new file mode 100644 index 00000000000..ace0c843741 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/legend/LegendRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..2c2251bc74d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/series/SeriesRequestBuilder.java @@ -0,0 +1,221 @@ +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 new file mode 100644 index 00000000000..64069e83bfd --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setdata; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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(Json::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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..fbc4e20c95e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..2451fb72e91 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setposition; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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 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 Json} + */ + @jakarta.annotation.Nullable + public Json 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(Json::createFromDiscriminatorValue)); }); + deserializerMap.put("startCell", (n) -> { this.setStartCell(n.getObjectValue(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the startCell property value. The startCell property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 Json 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 new file mode 100644 index 00000000000..9c0fa53ad70 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..935ce2f5be8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/title/TitleRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..a61c3162de7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/worksheet/WorksheetRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..622062de951 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java @@ -0,0 +1,261 @@ +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 new file mode 100644 index 00000000000..b2c1f75c6d1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.add; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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; + } + /** + * 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(Json::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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..8f7bb6f0662 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..653a7b2e836 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalPostRequestBody.java @@ -0,0 +1,141 @@ +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 new file mode 100644 index 00000000000..294e87d9e2c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..166e5ec5c0d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..a53a6a76dc8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..adc498e5cb4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java @@ -0,0 +1,98 @@ +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); + } + /** + * 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 + */ + @jakarta.annotation.Nullable + public WorkbookRange get() { + return get(null); + } + /** + * 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 + */ + @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); + } + /** + * 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 + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * 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} + */ + @jakarta.annotation.Nonnull + public RequestInformation 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 new file mode 100644 index 00000000000..75edc8dd431 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..fe73871a73a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java @@ -0,0 +1,252 @@ +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 new file mode 100644 index 00000000000..8c384c5536e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..3619c6b33a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..acc52b8bb81 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/refresh/RefreshRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..a16be35e38a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..74aff166ee3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/refreshall/RefreshAllRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..5175677a98e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..6862cb2211a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectPostRequestBody.java @@ -0,0 +1,108 @@ +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 new file mode 100644 index 00000000000..25864a5fcc3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..648e65ceeef --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/unprotect/UnprotectRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..e28ea1f7b08 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/range/RangeRequestBuilder.java @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..fca32ea9d79 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/rangewithaddress/RangeWithAddressRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..9f58900b4c5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java @@ -0,0 +1,263 @@ +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 new file mode 100644 index 00000000000..4e4aa335e5e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddPostRequestBody.java @@ -0,0 +1,124 @@ +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 new file mode 100644 index 00000000000..d782fe66c34 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java @@ -0,0 +1,105 @@ +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); + } + /** + * Use this API to create a new Table. + * @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); + } + /** + * Use this API to create a new Table. + * @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); + } + /** + * Use this API to create a new 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); + } + /** + * Use this API to create a new 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/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 new file mode 100644 index 00000000000..87eb137d91b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..7b0c007a8b2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountRequestBuilder.java @@ -0,0 +1,95 @@ +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 new file mode 100644 index 00000000000..4ed200d19f4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java @@ -0,0 +1,327 @@ +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 new file mode 100644 index 00000000000..d2aa9c18578 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/clearfilters/ClearFiltersRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..3438f15aba6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java @@ -0,0 +1,263 @@ +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 new file mode 100644 index 00000000000..9ff5d35ee57 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddPostRequestBody.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.add; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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>(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(Json::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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..25e24c25194 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..1776136a1bf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..1b8eee994de --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountRequestBuilder.java @@ -0,0 +1,95 @@ +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 new file mode 100644 index 00000000000..045711a035e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java @@ -0,0 +1,273 @@ +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 new file mode 100644 index 00000000000..ce71977b560 --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..f8f3464211d --- /dev/null +++ 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 @@ -0,0 +1,336 @@ +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 new file mode 100644 index 00000000000..33fec520a8e --- /dev/null +++ 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 @@ -0,0 +1,108 @@ +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 new file mode 100644 index 00000000000..29733260ceb --- /dev/null +++ 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 @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..0ff028c267d --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..0306b8dd49e --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..31dab2518b5 --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..30d938a3925 --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..b116f768256 --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..85f7c24f51b --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..ac7131c934a --- /dev/null +++ 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 @@ -0,0 +1,141 @@ +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 new file mode 100644 index 00000000000..2a9a29d9f13 --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..214cac5ac23 --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..397da918d9f --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..a3974fe41da --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..a0fce1fc129 --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..95ce0c61b1e --- /dev/null +++ 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 @@ -0,0 +1,108 @@ +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 new file mode 100644 index 00000000000..500f29e2f6f --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..598aeef568e --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..b13ed9839f0 --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..7f4cbfe0716 --- /dev/null +++ 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 @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..2101d21265f --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..e354d876e01 --- /dev/null +++ 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 @@ -0,0 +1,108 @@ +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.Json; +import com.microsoft.kiota.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 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(Json::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the values property value. The values property + * @return a {@link Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..26e5b4a23fc --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..f2e750c8314 --- /dev/null +++ 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 @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..b04e8ea2b79 --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..9ad2abd3ce7 --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..1faea9f33f9 --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..3b99d127a7b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java @@ -0,0 +1,145 @@ +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 new file mode 100644 index 00000000000..613fba85155 --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..b2b50ba2c8d --- /dev/null +++ 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 @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..fd133243ea4 --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..d6f691ee6c9 --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..9a4ae7e3d0f --- /dev/null +++ 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 @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..0a4c9b6f6c0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/converttorange/ConvertToRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..9eaef6c0001 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/databodyrange/DataBodyRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..a5f0ba6fa03 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..7bc30b60f07 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/range/RangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..cef8846c78d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..19a32a24bca --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java @@ -0,0 +1,263 @@ +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 new file mode 100644 index 00000000000..20d035b5c40 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.add; + +import com.microsoft.graph.models.Json; +import com.microsoft.kiota.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>(2); + deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); + deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(Json::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 Json} + */ + @jakarta.annotation.Nullable + public Json 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 Json 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 new file mode 100644 index 00000000000..b837bcef31b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..a6f740683d4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..b7861139329 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountRequestBuilder.java @@ -0,0 +1,95 @@ +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 new file mode 100644 index 00000000000..b89f1d59d45 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..0a03cd1a26a --- /dev/null +++ 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 @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..584540f8775 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java @@ -0,0 +1,109 @@ +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 new file mode 100644 index 00000000000..ea2de85bc1f --- /dev/null +++ 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 @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..8af5709169d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java @@ -0,0 +1,255 @@ +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 new file mode 100644 index 00000000000..8a14cf40860 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyPostRequestBody.java @@ -0,0 +1,142 @@ +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 new file mode 100644 index 00000000000..ab9eaa640f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..bf1da76da01 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/clear/ClearRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..733200bde1f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/reapply/ReapplyRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..e75b34bc8b4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..135d3c470b1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/worksheet/WorksheetRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..0976d2c4fd6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java @@ -0,0 +1,197 @@ +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 new file mode 100644 index 00000000000..481a72c1ce9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..152a3afbd69 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java @@ -0,0 +1,221 @@ +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 new file mode 100644 index 00000000000..b91d8ab6065 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..b60024a1ef6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..3d55692326a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..6d22d71c736 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/range/RangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..65acb0fe898 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..e23280e4fd6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java @@ -0,0 +1,221 @@ +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 new file mode 100644 index 00000000000..e433c5b6dc1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..44d69011bfc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..361507489f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..ff18ddff1ad --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrange/UsedRangeRequestBuilder.java @@ -0,0 +1,96 @@ +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 new file mode 100644 index 00000000000..bcb1b6c4bea --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrangewithvaluesonly/UsedRangeWithValuesOnlyRequestBuilder.java @@ -0,0 +1,98 @@ +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 new file mode 100644 index 00000000000..f3fe38302b4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +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 new file mode 100644 index 00000000000..c0ee552d843 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +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 new file mode 100644 index 00000000000..95e6f95afa2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 new file mode 100644 index 00000000000..cd28e12c234 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..b53c6c9ee58 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/ListRequestBuilder.java @@ -0,0 +1,300 @@ +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 new file mode 100644 index 00000000000..47e98e32d3d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/ColumnsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..4a47fa5e47c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..6d73c0bf46e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/item/ColumnDefinitionItemRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..2a912c8a135 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/columns/item/sourcecolumn/SourceColumnRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..b498d642f70 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/ContentTypesRequestBuilder.java @@ -0,0 +1,270 @@ +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 new file mode 100644 index 00000000000..7ab2da2c5d7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyPostRequestBody.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..5484e7be6f9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..097020a6ff2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubPostRequestBody.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..32251dd87b8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubRequestBuilder.java @@ -0,0 +1,105 @@ +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 new file mode 100644 index 00000000000..332c5f8d6b8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..c4ad151cf61 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..198736e837e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesRequestBuilder.java @@ -0,0 +1,166 @@ +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 new file mode 100644 index 00000000000..db6133240e5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ContentTypeItemRequestBuilder.java @@ -0,0 +1,318 @@ +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 new file mode 100644 index 00000000000..4a93a963389 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesPostRequestBody.java @@ -0,0 +1,124 @@ +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 new file mode 100644 index 00000000000..81229db62bc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..6c273958fc4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/base/BaseRequestBuilderEscaped.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..1f304c02ff1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/BaseTypesRequestBuilder.java @@ -0,0 +1,187 @@ +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 new file mode 100644 index 00000000000..e9e8f9b0918 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..24a6e8752d4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/item/ContentTypeItemRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..900cc15eb25 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/ColumnLinksRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..78aecc73a8f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..e85595008ff --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/item/ColumnLinkItemRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..e48ff779291 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/ColumnPositionsRequestBuilder.java @@ -0,0 +1,187 @@ +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 new file mode 100644 index 00000000000..6152d341808 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..dc72d4f13a5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/item/ColumnDefinitionItemRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..1919aa8c28c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/ColumnsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..c58550d87d7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..fa5da49a59b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/ColumnDefinitionItemRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..c080191a2b1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/sourcecolumn/SourceColumnRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..b61d6af36cf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationPostRequestBody.java @@ -0,0 +1,125 @@ +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 new file mode 100644 index 00000000000..a921ed7cc81 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationRequestBuilder.java @@ -0,0 +1,100 @@ +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 new file mode 100644 index 00000000000..8ebffbd582b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedGetResponse.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 00000000000..217905deab8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedRequestBuilder.java @@ -0,0 +1,97 @@ +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/publish/PublishRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/publish/PublishRequestBuilder.java new file mode 100644 index 00000000000..5a7fe69407a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/publish/PublishRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.storage.filestorage.containers.item.drive.list.contenttypes.item.publish; + +import com.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 publish method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class PublishRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link PublishRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @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); + } + /** + * Instantiates a new {@link PublishRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public PublishRequestBuilder(@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}/publish", rawUrl); + } + /** + * Publishes a contentType present in the content type hub site. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * Publishes a contentType present in the 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); + } + /** + * Publishes a contentType present in the content type hub site. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Publishes a contentType present in the 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 PublishRequestBuilder} + */ + @jakarta.annotation.Nonnull + public PublishRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new PublishRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.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/unpublish/UnpublishRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/unpublish/UnpublishRequestBuilder.java new file mode 100644 index 00000000000..eed7db362a4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/unpublish/UnpublishRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..cdf38ff55a6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/CreatedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +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 new file mode 100644 index 00000000000..2babe91528a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +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 new file mode 100644 index 00000000000..bb0247f927b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 new file mode 100644 index 00000000000..2b3f750f5ad --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..225474b6db8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/drive/DriveRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..8e7640a31ac --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/ItemsRequestBuilder.java @@ -0,0 +1,248 @@ +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{?%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{?%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 { + /** + * 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("%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 new file mode 100644 index 00000000000..e8e1d3cce4a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..50f9a0f7a43 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaRequestBuilder.java @@ -0,0 +1,166 @@ +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 new file mode 100644 index 00000000000..6f1cbbe5e7f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..9cc6a2a00eb --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenRequestBuilder.java @@ -0,0 +1,166 @@ +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 new file mode 100644 index 00000000000..68c69f522f8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/ListItemItemRequestBuilder.java @@ -0,0 +1,324 @@ +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 new file mode 100644 index 00000000000..a11c9ad7a39 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/analytics/AnalyticsRequestBuilder.java @@ -0,0 +1,129 @@ +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 new file mode 100644 index 00000000000..e97cd18701d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/CreatedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +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 new file mode 100644 index 00000000000..0756701b141 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +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 new file mode 100644 index 00000000000..5eee70acc02 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 new file mode 100644 index 00000000000..8cacc28cd6f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..85195dcfc83 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkPostRequestBody.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..ba31ff6f2c9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkRequestBuilder.java @@ -0,0 +1,103 @@ +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 new file mode 100644 index 00000000000..6945949c71f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/DocumentSetVersionsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..a79504ff9e5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..9a36c6f5508 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/DocumentSetVersionItemRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..9ef1c6967f7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/fields/FieldsRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..2934d5fd59d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/restore/RestoreRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..2de288bf416 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/DriveItemRequestBuilder.java @@ -0,0 +1,138 @@ +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 new file mode 100644 index 00000000000..5e1c715e75b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/content/ContentRequestBuilder.java @@ -0,0 +1,223 @@ +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 new file mode 100644 index 00000000000..f494c73a201 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/fields/FieldsRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..f1cdb1edf1c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyinterval/GetActivitiesByIntervalGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..8d8d377a253 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyinterval/GetActivitiesByIntervalRequestBuilder.java @@ -0,0 +1,164 @@ +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 new file mode 100644 index 00000000000..bcf6707ea22 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..d207f38ded8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java @@ -0,0 +1,170 @@ +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 new file mode 100644 index 00000000000..2a2ab7dfa05 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +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 new file mode 100644 index 00000000000..67104dd8470 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +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 new file mode 100644 index 00000000000..3ea678cae84 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 new file mode 100644 index 00000000000..74ab2bd15d2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..26681eab87f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/VersionsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..8c3e80a6649 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..093cf56498f --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/ListItemVersionItemRequestBuilder.java @@ -0,0 +1,246 @@ +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 new file mode 100644 index 00000000000..215e02e27d3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/fields/FieldsRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..c3f416a575c --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..7d92dc5f9a6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java @@ -0,0 +1,147 @@ +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 new file mode 100644 index 00000000000..cf19a9fc8ac --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java @@ -0,0 +1,184 @@ +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 new file mode 100644 index 00000000000..432cdf8b895 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java @@ -0,0 +1,174 @@ +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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 non-transient, 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 new file mode 100644 index 00000000000..9bd290be2dc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..8face331f4b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/operations/OperationsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..2b5ca3ec73a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/operations/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..b100604cbcf --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/operations/item/RichLongRunningOperationItemRequestBuilder.java @@ -0,0 +1,228 @@ +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 new file mode 100644 index 00000000000..cd1b5d39d12 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/SubscriptionsRequestBuilder.java @@ -0,0 +1,243 @@ +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 new file mode 100644 index 00000000000..c86945f54ea --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..f971912cc1e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/SubscriptionItemRequestBuilder.java @@ -0,0 +1,237 @@ +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 new file mode 100644 index 00000000000..1b5b2ec3576 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java @@ -0,0 +1,93 @@ +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 new file mode 100644 index 00000000000..6c75965ff3b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/recent/RecentGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..e68babc6e1b --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/recent/RecentRequestBuilder.java @@ -0,0 +1,166 @@ +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 new file mode 100644 index 00000000000..fb4ac74ba76 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/root/RootRequestBuilder.java @@ -0,0 +1,138 @@ +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 new file mode 100644 index 00000000000..51006dcb46e --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/root/content/ContentRequestBuilder.java @@ -0,0 +1,223 @@ +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 new file mode 100644 index 00000000000..9e1199b7cee --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..a28a4920da0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQRequestBuilder.java @@ -0,0 +1,168 @@ +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 new file mode 100644 index 00000000000..4b091423953 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeGetResponse.java @@ -0,0 +1,63 @@ +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 new file mode 100644 index 00000000000..3601c22f829 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeRequestBuilder.java @@ -0,0 +1,166 @@ +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 new file mode 100644 index 00000000000..7e89d325f21 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/SpecialRequestBuilder.java @@ -0,0 +1,187 @@ +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 new file mode 100644 index 00000000000..51b8c35fda4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +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 new file mode 100644 index 00000000000..8f8f39bc08d --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/item/DriveItemItemRequestBuilder.java @@ -0,0 +1,138 @@ +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 new file mode 100644 index 00000000000..be24d248a9a --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/drive/special/item/content/ContentRequestBuilder.java @@ -0,0 +1,223 @@ +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/permissions/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permissions/PermissionsRequestBuilder.java new file mode 100644 index 00000000000..e1114714df6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permissions/PermissionsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.storage.filestorage.containers.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.permissions.count.CountRequestBuilder; +import com.microsoft.graph.storage.filestorage.containers.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.fileStorageContainer 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.fileStorageContainer 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}/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}/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The set of permissions for users in the fileStorageContainer. Permission for each user is set by the roles property. The possible values are 'reader', 'writer', 'manager', and 'owner'. Read-write. + * @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 users in the fileStorageContainer. Permission for each user is set by the roles property. The possible values are 'reader', 'writer', 'manager', and 'owner'. Read-write. + * @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 users in the fileStorageContainer. Permission for each user is set by the roles property. The possible values are 'reader', 'writer', 'manager', and 'owner'. Read-write. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The set of permissions for users in the fileStorageContainer. Permission for each user is set by the roles property. The possible values are 'reader', 'writer', 'manager', and 'owner'. 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; + } + /** + * 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 users in the fileStorageContainer. Permission for each user is set by the roles property. The possible values are 'reader', 'writer', 'manager', and 'owner'. Read-write. + */ + @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/permissions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permissions/count/CountRequestBuilder.java new file mode 100644 index 00000000000..9754512e2bc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permissions/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.storage.filestorage.containers.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}/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}/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/permissions/item/PermissionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permissions/item/PermissionItemRequestBuilder.java new file mode 100644 index 00000000000..000caf58e46 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permissions/item/PermissionItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.storage.filestorage.containers.item.permissions.item; + +import com.microsoft.graph.models.odataerrors.ODataError; +import com.microsoft.graph.models.Permission; +import com.microsoft.graph.storage.filestorage.containers.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.fileStorageContainer 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}/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}/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 users in the fileStorageContainer. Permission for each user is set by the roles property. The possible values are 'reader', 'writer', 'manager', and 'owner'. Read-write. + * @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 users in the fileStorageContainer. Permission for each user is set by the roles property. The possible values are 'reader', 'writer', 'manager', and 'owner'. Read-write. + * @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 users in the fileStorageContainer. Permission for each user is set by the roles property. The possible values are 'reader', 'writer', 'manager', and 'owner'. Read-write. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The set of permissions for users in the fileStorageContainer. Permission for each user is set by the roles property. The possible values are 'reader', 'writer', 'manager', and 'owner'. 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 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 users in the fileStorageContainer. Permission for each user is set by the roles property. The possible values are 'reader', 'writer', 'manager', and 'owner'. 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/permissions/item/grant/GrantPostRequestBody.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permissions/item/grant/GrantPostRequestBody.java new file mode 100644 index 00000000000..e1d2e515413 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permissions/item/grant/GrantPostRequestBody.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.storage.filestorage.containers.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/permissions/item/grant/GrantPostResponse.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permissions/item/grant/GrantPostResponse.java new file mode 100644 index 00000000000..914029655cc --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permissions/item/grant/GrantPostResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.storage.filestorage.containers.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/permissions/item/grant/GrantRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permissions/item/grant/GrantRequestBuilder.java new file mode 100644 index 00000000000..c7292498ff6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/generated/storage/filestorage/containers/item/permissions/item/grant/GrantRequestBuilder.java @@ -0,0 +1,104 @@ +package com.microsoft.graph.storage.filestorage.containers.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}/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}/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/teams/item/channels/item/members/item/ConversationMemberItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/members/item/ConversationMemberItemRequestBuilder.java index c3137f89fc1..53c0894211d 100644 --- a/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/members/item/ConversationMemberItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/teams/item/channels/item/members/item/ConversationMemberItemRequestBuilder.java @@ -37,18 +37,18 @@ public ConversationMemberItemRequestBuilder(@jakarta.annotation.Nonnull final St super(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @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 conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @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); @@ -81,23 +81,23 @@ public ConversationMember get(@jakarta.annotation.Nullable final java.util.funct return this.requestAdapter.send(requestInfo, errorMapping, ConversationMember::createFromDiscriminatorValue); } /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or 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 patch(@jakarta.annotation.Nonnull final ConversationMember body) { return patch(body, null); } /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or 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 patch(@jakarta.annotation.Nonnull final ConversationMember body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -108,7 +108,7 @@ public ConversationMember patch(@jakarta.annotation.Nonnull final ConversationMe return this.requestAdapter.send(requestInfo, errorMapping, ConversationMember::createFromDiscriminatorValue); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -116,7 +116,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete a conversationMember from a channel. + * Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or channel. * @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 role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + * Update the role of a conversationMember in a team or 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/tenantrelationships/multitenantorganization/MultiTenantOrganizationRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/tenantrelationships/multitenantorganization/MultiTenantOrganizationRequestBuilder.java index e3b16836e40..d71c488ecd6 100644 --- a/src/main/java/com/microsoft/graph/generated/tenantrelationships/multitenantorganization/MultiTenantOrganizationRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/tenantrelationships/multitenantorganization/MultiTenantOrganizationRequestBuilder.java @@ -79,23 +79,23 @@ public MultiTenantOrganization get(@jakarta.annotation.Nullable final java.util. return this.requestAdapter.send(requestInfo, errorMapping, MultiTenantOrganization::createFromDiscriminatorValue); } /** - * Update the properties of a multitenant organization. + * Create a new multitenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multitenant organization. * @param body The request body * @return a {@link MultiTenantOrganization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MultiTenantOrganization put(@jakarta.annotation.Nonnull final MultiTenantOrganization body) { return put(body, null); } /** - * Update the properties of a multitenant organization. + * Create a new multitenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multitenant organization. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link MultiTenantOrganization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public MultiTenantOrganization put(@jakarta.annotation.Nonnull final MultiTenantOrganization body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -126,7 +126,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a multitenant organization. + * Create a new multitenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multitenant organization. * @param body The request body * @return a {@link RequestInformation} */ @@ -135,7 +135,7 @@ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull fi return toPutRequestInformation(body, null); } /** - * Update the properties of a multitenant organization. + * Create a new multitenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multitenant organization. * @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/UsersRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/UsersRequestBuilder.java index 0c0191b4ff5..d88c1754c0c 100644 --- a/src/main/java/com/microsoft/graph/generated/users/UsersRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/UsersRequestBuilder.java @@ -96,21 +96,21 @@ public UsersRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/users{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24top}", rawUrl); } /** - * List properties and relationships of the user objects. + * Retrieve a list of 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() { return get(null); } /** - * List properties and relationships of the user objects. + * Retrieve a list of user objects. * @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) { @@ -147,7 +147,7 @@ public User post(@jakarta.annotation.Nonnull final User body, @jakarta.annotatio return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); } /** - * List properties and relationships of the user objects. + * Retrieve a list of user objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -155,7 +155,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List properties and relationships of the user objects. + * Retrieve a list of user objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -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} @@ -201,7 +201,7 @@ public UsersRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU return new UsersRequestBuilder(rawUrl, requestAdapter); } /** - * List properties and relationships of the user objects. + * Retrieve a list of user objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { 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 ad6c30a4486..fb813b6a0e6 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 @@ -728,21 +728,21 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder exportDevic return new ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder(pathParameters, requestAdapter, skip, top); } /** - * 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. + * Read properties and relationships of the user object. * @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); } /** - * 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. + * Read properties and relationships of the user object. * @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) { @@ -811,7 +811,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * 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. + * Read properties and relationships of the user object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -819,7 +819,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * 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. + * Read properties and relationships of the user object. * @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 { } /** - * 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. + * Read properties and relationships of the user object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/authentication/passwordmethods/PasswordMethodsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/authentication/passwordmethods/PasswordMethodsRequestBuilder.java index be5ae5c5c63..7f7ab337dcc 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/authentication/passwordmethods/PasswordMethodsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/authentication/passwordmethods/PasswordMethodsRequestBuilder.java @@ -60,7 +60,7 @@ public PasswordMethodsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/passwordMethods{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents the password that's registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password. + * Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password. * @return a {@link PasswordAuthenticationMethodCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public PasswordAuthenticationMethodCollectionResponse get() { return get(null); } /** - * Represents the password that's registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password. + * Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link PasswordAuthenticationMethodCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public PasswordAuthenticationMethod post(@jakarta.annotation.Nonnull final Passw return this.requestAdapter.send(requestInfo, errorMapping, PasswordAuthenticationMethod::createFromDiscriminatorValue); } /** - * Represents the password that's registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password. + * Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the password that's registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password. + * Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public PasswordMethodsRequestBuilder withUrl(@jakarta.annotation.Nonnull final S return new PasswordMethodsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents the password that's registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password. + * Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/authentication/passwordmethods/item/PasswordAuthenticationMethodItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/authentication/passwordmethods/item/PasswordAuthenticationMethodItemRequestBuilder.java index 8debacce071..267fbd8d244 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/authentication/passwordmethods/item/PasswordAuthenticationMethodItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/authentication/passwordmethods/item/PasswordAuthenticationMethodItemRequestBuilder.java @@ -37,7 +37,7 @@ public PasswordAuthenticationMethodItemRequestBuilder(@jakarta.annotation.Nonnul super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/passwordMethods/{passwordAuthenticationMethod%2Did}{?%24expand,%24select}", rawUrl); } /** - * Represents the password that's registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password. + * Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password. * @return a {@link PasswordAuthenticationMethod} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public PasswordAuthenticationMethod get() { return get(null); } /** - * Represents the password that's registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password. + * Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link PasswordAuthenticationMethod} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public PasswordAuthenticationMethod get(@jakarta.annotation.Nullable final java. return this.requestAdapter.send(requestInfo, errorMapping, PasswordAuthenticationMethod::createFromDiscriminatorValue); } /** - * Represents the password that's registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password. + * Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the password that's registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password. + * Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PasswordAuthenticationMethodItemRequestBuilder withUrl(@jakarta.annotatio return new PasswordAuthenticationMethodItemRequestBuilder(rawUrl, requestAdapter); } /** - * Represents the password that's registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password. + * Represents the password registered to a user for authentication. For security, the password itself is never returned in the object, but action can be taken to reset a password. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/authentication/softwareoathmethods/SoftwareOathMethodsRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/authentication/softwareoathmethods/SoftwareOathMethodsRequestBuilder.java index 9cc41b7dac6..a97e09765c5 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/authentication/softwareoathmethods/SoftwareOathMethodsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/authentication/softwareoathmethods/SoftwareOathMethodsRequestBuilder.java @@ -59,7 +59,7 @@ public SoftwareOathMethodsRequestBuilder(@jakarta.annotation.Nonnull final Strin super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/softwareOathMethods{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * The software OATH TOTP applications registered to a user for authentication. + * The software OATH time-based one-time password (TOTP) applications registered to a user for authentication. * @return a {@link SoftwareOathAuthenticationMethodCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -68,7 +68,7 @@ public SoftwareOathAuthenticationMethodCollectionResponse get() { return get(null); } /** - * The software OATH TOTP applications registered to a user for authentication. + * The software OATH time-based one-time password (TOTP) applications registered to a user for authentication. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link SoftwareOathAuthenticationMethodCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -81,7 +81,7 @@ public SoftwareOathAuthenticationMethodCollectionResponse get(@jakarta.annotatio return this.requestAdapter.send(requestInfo, errorMapping, SoftwareOathAuthenticationMethodCollectionResponse::createFromDiscriminatorValue); } /** - * The software OATH TOTP applications registered to a user for authentication. + * The software OATH time-based one-time password (TOTP) applications registered to a user for authentication. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -89,7 +89,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The software OATH TOTP applications registered to a user for authentication. + * The software OATH time-based one-time password (TOTP) applications registered to a user for authentication. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -111,7 +111,7 @@ public SoftwareOathMethodsRequestBuilder withUrl(@jakarta.annotation.Nonnull fin return new SoftwareOathMethodsRequestBuilder(rawUrl, requestAdapter); } /** - * The software OATH TOTP applications registered to a user for authentication. + * The software OATH time-based one-time password (TOTP) applications registered to a user for authentication. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/generated/users/item/authentication/softwareoathmethods/item/SoftwareOathAuthenticationMethodItemRequestBuilder.java b/src/main/java/com/microsoft/graph/generated/users/item/authentication/softwareoathmethods/item/SoftwareOathAuthenticationMethodItemRequestBuilder.java index cda697e1f00..07f45805a4f 100644 --- a/src/main/java/com/microsoft/graph/generated/users/item/authentication/softwareoathmethods/item/SoftwareOathAuthenticationMethodItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/generated/users/item/authentication/softwareoathmethods/item/SoftwareOathAuthenticationMethodItemRequestBuilder.java @@ -57,7 +57,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * The software OATH TOTP applications registered to a user for authentication. + * The software OATH time-based one-time password (TOTP) applications registered to a user for authentication. * @return a {@link SoftwareOathAuthenticationMethod} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -66,7 +66,7 @@ public SoftwareOathAuthenticationMethod get() { return get(null); } /** - * The software OATH TOTP applications registered to a user for authentication. + * The software OATH time-based one-time password (TOTP) applications registered to a user for authentication. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link SoftwareOathAuthenticationMethod} * @throws ODataError When receiving a 4XX or 5XX status code @@ -99,7 +99,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * The software OATH TOTP applications registered to a user for authentication. + * The software OATH time-based one-time password (TOTP) applications registered to a user for authentication. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -107,7 +107,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The software OATH TOTP applications registered to a user for authentication. + * The software OATH time-based one-time password (TOTP) applications registered to a user for authentication. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -135,7 +135,7 @@ public SoftwareOathAuthenticationMethodItemRequestBuilder withUrl(@jakarta.annot public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * The software OATH TOTP applications registered to a user for authentication. + * The software OATH time-based one-time password (TOTP) applications registered to a user for authentication. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters {